Add .desktop shortcut to ~/.config/autostart

Bug #1181655 reported by Daniel O'Connor
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Haguichi
Won't Fix
Wishlist
Stephen Brandt

Bug Description

Some desktop environments dont let you easily add applications to your session.

Consider providing a .desktop file, as per:
http://forum.lxde.org/viewtopic.php?t=111

Revision history for this message
Daniel O'Connor (daniel-oconnor) wrote :

$ vi ~/.config/autostart/haguichi.desktop

[Desktop Entry]
Name=Haguichi
GenericName=VPN GUI
Comment=Frontend GUI for hamachi
Exec=haguichi
Terminal=false
Type=Application
Icon=haguichi
Categories=Network;
StartupNotify=false

... should do it.

Revision history for this message
Stephen Brandt (ztefn) wrote :

Haguichi's autostart .desktop file is installed in /usr/share/gnome/autostart since version 1.0.19. Before that it was installed in the more desktop environment agnostic /usr/etc/xdg/autostart folder, but in GNOME 3 they decided to ignore that location in the “Startup Applications” editor...

Placing the .desktop file in ~/.config/autostart could indeed eventually be the best solution. To achieve this, Haguichi should create this file on runtime, instead of installation time. Additional advantage is that session startup could (also) be controlled from within Haguichi.

Changed in haguichi:
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Stephen Brandt (ztefn)
summary: - Add .desktop shortcut
+ Add .desktop shortcut to ~/.config/autostart
Revision history for this message
Stephen Brandt (ztefn) wrote :

Starting version 1.3.0, the .desktop file is installed in /etc/xdg/autostart/ again. This means it's available to any desktop environment's session manager for the taking. Tested on Unity, Gnome (Tweak Tool), Mate, KDE, XFCE and LXDE.

Considering most desktop environments use different ways to enable or disable application startup*, I'm afraid that simply placing and/or removing the .desktop file in ~/.config/autostart would bring a plethora of conflicts [1]. So marking this bug "Won't Fix" for now. But be welcome to bring ideas or suggestions to convince me otherwise.

* For example, while many desktops place a .desktop file to *enable* autostart, LXDE places a .desktop file to *disable* autostart by adding "NotShowIn=LXDE"

Changed in haguichi:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.