It is usually part of the package libgtk-3-bin (this may vary by distro). You should really be using gtk-launch if it is available. Hashbang on top of an executable desktop entry works too desktop entry on ~/.local/share/applications/sktop: įinally, I associated the entry as the default handler in ~/.local/share/applications/mimeapps.list under the section as : Īpplication/x-desktop=sktop The script needs to have the executable permission, so I ran this in a terminal: chmod x ~/bin/run-desktop It is a bit convoluted, but works flawlessly on Ubuntu 12.10, adding a meaningful icon (no more ?) on the Unity launcher.įirst, I wrote a python script using Gio and placed saved it as ~/bin/run-desktop : #!/usr/bin/python foo.desktopįor older releases I've got a quick workaround (stealing inspiration from the nautilus source code). Since glib 2.67.2 there's a gio launch command that can be used like this: gio launch. None of them are relevant for launching at the command line. The arguments ( %u, %F etc) are detailed here. Then make it executable chmod x ~/bin/deskopenĪnd then you could do, e.g. You could put this in a file, say ~/bin/deskopen with the contents #!/bin/sh
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |