[17:32] <ktt> Hello. Could someone explain me in a nutshell, how Unity gets notified about desktop file location of JS applications? Like org.gnome.Maps and so on.
[17:37] <greyback> ktt: desktop files go in /usr/share/applications (system-wide apps) and $HOME/.local/share/applications (user-only apps)
[17:38] <greyback> Unity should be watching for any file additions/removals of those directories - but I know from experience there can be latency before it notices
[17:41] <ktt> Yes, I know. But that's not what I'm having trouble with. Gnome Maps is a JS app! It doesn't have desktop file property in xprop output, neither it has embedded X icon.
[17:43] <ktt> And moreover, executable path/name is /usr/bin/gjs. And nevertheless Unity can find it's .desktop file. Even if I launch it from the terminal.
[17:44] <greyback> ktt: unity is using heuristics to link GUI process to desktop files. It will read the executable path/name and search for any desktop files with that in the Exec= line
[17:45] <Saviq> ktt, the project doing that is bamf
[17:45] <Saviq> https://launchpad.net/bamf
[17:45] <ktt> Cool, thanks! I was just studying it's code.
[17:46] <ktt> After almost a day investigating Unity itself.
[17:46] <ktt> Should have come and ask earlier.
[17:47] <ktt> Oh. And also libappstream.