On 06/30/2014 04:26 AM, Simon Steinbeiß wrote: > Hey, > I have to admit that this was not an anticipated use-case. Either way, > light-locker installs a desktop-file into /etc/xdg/autostart to ensure it's > getting started up when a session starts. It cannot know which DE people want > to use it with, so we will certainly not add some built-in DE detection.
I don't think light-locker would have to do DE detection. The autostart specification allows applications to be enabled/disabled by DE via the OnlyShownIn and NotShownIn keys. The DEs themselves enforce these keys, and many autostart files use them. See: <http://standards.freedesktop.org/autostart-spec/autostart- spec-0.5.html#idm140084019414432> > The useful thing that you can do to fix your problem is to make sure it > gets started in your other sessions by adding it to the session > autostart and removing the entry from /etc/xdg/autostart (or: see if > gnome-shell can actually inhibit starting certain apps, as I'm not a > gnome user I wouldn't know). AFAIK Gnome respects the OnlyShownIn and NotShownIn keys in autostart files. (Practically speaking, though, I'll probably just replace light-locker with xscreensaver, as the former breaks when using GDM.) > In the end I'd say this is not a bug in light-locker, it's entirely > expected that it autostarts *by default* after you install it. While I agree that convenient defaults are nice, it's more important that the defaults be safe. Blindly injecting light-locker into every installed DE is not a safe default. In my case, I installed light-locker to satisfy a "recommends" dependency in xfce4-session, so I expected that it would only run under xfce. I did not expect that it would run under other DEs, and I certainly didn't expect that it would *break* things. It took me several days to figure out why my Gnome sessions were occasionally locking up. I think any one of the following would address this issue: - Have at least one of light-locker and gnome-shell declare a 'breaks' dependency on the other (so apt-get will refuse to install them both). - Add 'NotShowIn=GNOME;' to /etc/xdg/autostart/light-locker.desktop, i.e. blacklist those DEs known to conflict with light-locker. - Add 'OnlyShowIn=XFCE;LXDE;' to /etc/xdg/autostart/light-locker.desktop, i.e. whitelist those DEs known to benefit from light-locker. - Remove /etc/xdg/autostart/light-locker.desktop and have the DEs start light-locker themselves if and when they want it. (I think xfce and razor-qt use xscreensaver this way.) HTH! (Disclaimer: I haven't actually tested these ideas.) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1335738 Title: autostarts under gnome3, conflicts with gnome-shell To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/light-locker/+bug/1335738/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
