-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Control: tag -1 +moreinfo
On Sun, 2016-06-12 at 10:59 +0200, Julian Andres Klode wrote: > The redshift.service file is broken and it is simply not really possible to > write service files for graphical sessions yet. > > It contains After=display-manager.service - this does not work: > Seems to work for me, on fresh reboots. rrs@learner:~/apport-patches$ systemctl --user status redshift ● redshift.service - Redshift display colour temperature adjustment Loaded: loaded (/usr/lib/systemd/user/redshift.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2016-08-09 23:16:35 IST; 12min ago Docs: http://jonls.dk/redshift/ Main PID: 5891 (redshift) CGroup: /user.slice/user-1000.slice/user@1000.service/redshift.service └─5891 /usr/bin/redshift Aug 09 23:16:35 learner systemd[5349]: Started Redshift display colour temperature adjustment. Aug 09 23:16:35 learner redshift[5891]: Trying location provider `geoclue2'... Aug 09 23:16:35 learner redshift[5891]: Using provider `geoclue2'. Aug 09 23:16:37 learner redshift[5891]: Using method `randr'. 2016-08-09 / 23:28:54 ♒♒♒ ☺ > (1) display-manager.service is a system service, not a user one, so the > systemd > user instance does not know about it > (2) even if it knew about it, this is the login manager, not your desktop > (3) even if it were your desktop, there's no guarantee that the environment > has been imported yet. > > What is really needed is a user session graphical.target that you can have > a WantedBy on, but that does not exist. How about the following? It seems to be specific to systemd >231 Does it help? PartOf=graphical-session.target BindsTo=graphical-session.target - -- Ritesh Raj Sarraf | http://people.debian.org/~rrs Debian - The Universal Operating System -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXqhymAAoJEKY6WKPy4XVpgY8P/2dmuhW7zwV6uGXfjjXx9hiy APxGUIFaKfdgjMiA7QfbX9Q2YWLuuaZVO8a9MVqkj8NoyFNRgKkM7weGemNYcFZK YR+WQFn7jm3wK6CB6xMoifx1RnddO604elKh/L/LuetwKfvciqtMb7OmwTE9IvlX iMwnlgVp7i6gZd3XU/vncI8H4/T6fzQ8vpAXYt0lVJyyxDMXR+oN4tRfCuIGLmpv 69KiWIP4g622qjpx4TY1fkzfRxdM5/7isAbfKnpK6fXinQpQjEk0k6Mvvl99ZMPv D1ZBQ5YsOBa2ioVlFvVARqfCsfWfiriR4g9IN4Cm4RdAZF517m0DGQ4HSj9Fnbt/ NGOGYlwesGEUXn3Wrq5uBFr0MCnhxHHIFaJsyABix0JtZ6pbSdjqWr2dCvC9+8z7 EluRCVigS0OrWePWm+m1xoupDkqvyB2+2n7F5kRYDIJY/FHwG4eBCxdkxI/mT8GW HIlUzvew5L8RzlQc2WOeJ/A9dbxDFi64MHcuMCB2Iksh0TmJk+sAWwHcgtl5qWIT 1oeFzm7x4orJo9yaZy5rmvatsgO8wHBAU/aNdgCsFSt+3GiMpkQxQ7HagWlIY8UW bVCt4hTU9XN8/ItYlSYfJEx09ii1uKSNCP5V+3V+FprjZpkJYlejicNOgUeGXJ/G BddcNX1iQtgFs+Srth2f =I0do -----END PGP SIGNATURE-----