GNOME Bugzilla – Bug 792849
Add preferences action to .desktop file
Last modified: 2018-08-22 07:49:22 UTC
Add something like this to the desktop file: [Desktop Entry] [...] Actions=Preferences; [Desktop Action Preferences] _Name=Preferences Exec=gnome-terminal --preferences This way on unity7's and gnome-shell's (at least the Ubuntu flavor) launcher, the desktop icon has a right-click entry to invoke preferences. Useful e.g. if the user has locked that icon to the launcher, and later screws up g-t's prefs. Firefox and Chrome have similar options to open private a.k.a. incognito mode. Requires to add startup notification when g-t is invoked this way.
Fine with me. > Requires to add startup notification when g-t is invoked this way. What do you mean? g-t should have startup notification already.
Not when started up with --preferences, if I remember correctly. I think I got stuck with a spinning wheel until it timed out.
Could you try with master? I think the latest commit should have fixed that.
> Could you try with master? I think the latest commit should have fixed that. Confirmed, thanks!
At least in Unity7 (not sure about real GNOME) these "actions" show up first, followed by the main entry to launch the app. It would look silly if the first entry was "Preferences" and the next would be to open a terminal. In accordance, firefox and chrome have explicit "action" entries for the main operation (opening a new window) too, not just for the private/incognito mode. I guess we should follow this pattern too. (Shall we squeeze it in to 0-53, relying on existing UI strings?)
Oh, and it has another beautiful property. The "default" thing just focuses the existing gnome-terminal window, whereas the "New" entry would always open a new one. So it should be something like: [Desktop Entry] [...] Actions=new;prefs; [Desktop Action new] _Name=New Window Exec=gnome-terminal [Desktop Action prefs] _Name=Preferences Exec=gnome-terminal --preferences
If there's no new UI strings necessary, should be fine to squeeze into g-t 3.29.92 :-)
Submitted.