[aur-general] xdg-autostart files in package
Hello, I've received a complaint about nagstamon which installs a .desktop file in /etc/xdg/autostart and that I should please not install stuff in xdg-autostart. Do we have any recommendations for this? Should I remove it or leave it to the user to deactivate the autostarting of nagstamon by removing the corresponding .desktop file? Greetings, Christoph
Apps should not add themselves to autostart on installation. Ryan On Fri, Apr 26, 2013 at 3:47 AM, Christoph Vigano <mail@cvigano.de> wrote:
Hello,
I've received a complaint about nagstamon which installs a .desktop file in /etc/xdg/autostart and that I should please not install stuff in xdg-autostart.
Do we have any recommendations for this? Should I remove it or leave it to the user to deactivate the autostarting of nagstamon by removing the corresponding .desktop file?
Greetings, Christoph
On 04/26/2013 05:13 PM, Ryan Delaney wrote:
Apps should not add themselves to autostart on installation.
Ryan
On Fri, Apr 26, 2013 at 3:47 AM, Christoph Vigano <mail@cvigano.de> wrote:
Hello,
I've received a complaint about nagstamon which installs a .desktop file in /etc/xdg/autostart and that I should please not install stuff in xdg-autostart.
Do we have any recommendations for this? Should I remove it or leave it to the user to deactivate the autostarting of nagstamon by removing the corresponding .desktop file?
Greetings, Christoph
I don't really see the problem if the package is intended to run as some kind of background process. Many packages install files to /etc/xdg/autostart (Think GNOME packages).
On Apr 26, 2013 3:47 AM, "Christoph Vigano" <mail@cvigano.de> wrote:
Hello,
I've received a complaint about nagstamon which installs a .desktop file in /etc/xdg/autostart and that I should please not install stuff in xdg-autostart.
Do we have any recommendations for this? Should I remove it or leave it to the user to deactivate the autostarting of nagstamon by removing the corresponding .desktop file?
Greetings, Christoph
Automaton is left up to the user, not provided by the maintainer.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christoph, On Fri, 26 Apr 2013, Christoph Vigano wrote:
Do we have any recommendations for this? Should I remove it or leave it to the user to deactivate the autostarting of nagstamon by removing the corresponding .desktop file?
Per XDG specifications, it is not necessary to remove the file in /etc/xdg/autostart to deactivate .desktop files resident there: the user need only place a .desktop file with the same name in $HOME/.config/autostart with the attribute Hidden=true and any XDG compliant autostart mechanism will ignore that file. I show gnome-keyring installing 3 files there, gconf installing one, network-manager-applet installing one, polkit-gnome installing one, dhcpcd-ui installing one, blueman installing one, at-spi2-core installing one, and bbkeys installing one (that's mine). Arch Linux packages are so inconsistent in their behaviour in this regard that it just doesn't matter: it must be constantly managed. A tool that configures autostart needs a .desktop file somewhere to know about the app at all. Unfortunately, most that are eligible for /etc/xdg/autostart should not appear on an applications menu and needs NoDisplay=true if it is placed in /usr/share/applications instead. An autostart tool needs to then ignore this setting to offer it to the user (so it can be placed into $HOME/.config/autostart). In general I prefer that they be placed into /etc/xdg/autostart so that they can be more simply overridden with Hidden=true in /etc/xdg/autostart instead of trying to dig them out of /usr/share/applications and trying to determine whether they are eligible for autostart. (Some have X-GNOME-Autostart-Enable=true so that it doesn't matter where they reside, but that is non-standard.) Well, that's my take. - --brian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFRevfQMYOP2up1d2URAjIBAKCxucJ3Z/Ug6L6hthtpiKnDceOf8ACghjHE MHpvWouhMUYuZQ8GxvoUw3s= =Ze5s -----END PGP SIGNATURE-----
On Fri, Apr 26, 2013 at 03:55:28PM -0600, Brian F. G. Bidulock wrote:
Christoph,
On Fri, 26 Apr 2013, Christoph Vigano wrote:
Do we have any recommendations for this? Should I remove it or leave it to the user to deactivate the autostarting of nagstamon by removing the corresponding .desktop file?
Per XDG specifications, it is not necessary to remove the file in /etc/xdg/autostart to deactivate .desktop files resident there: the user need only place a .desktop file with the same name in $HOME/.config/autostart with the attribute Hidden=true and any XDG compliant autostart mechanism will ignore that file. ---end quoted text---
Great. In my opinion, if autostart is not critical for package, maintainer should just set Hidden=true in his package's .desktop file. If user insists on enabling autostart, he can copy that file to $XDG_CONFIG_HOME/autostart (as per specification [1] "only the Hidden key in the most important .desktop file must be considered"). Tools are happy. [1]: http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html#i... -- My AUR packages - https://aur.archlinux.org/packages.php?SeB=m&K=AlexanderR
alexander.r, On Sat, 27 Apr 2013, alexander.r@gmx.com wrote:
Great. In my opinion, if autostart is not critical for package, maintainer should just set Hidden=true in his package's .desktop file. If user insists on enabling autostart, he can copy that file to $XDG_CONFIG_HOME/autostart (as per specification [1] "only the Hidden key in the most important .desktop file must be considered"). Tools are happy.
Nicely put. Likely the best approach. --brian
participants (6)
-
alexander.r@gmx.com
-
Armin K.
-
Brian F. G. Bidulock
-
Christoph Vigano
-
Ryan Delaney
-
Taylor Lookabaugh