Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532578 - x11-misc/redshift - enable systemd support
Summary: x11-misc/redshift - enable systemd support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2014-12-14 18:18 UTC by Alessandro Molari
Modified: 2014-12-15 21:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Molari 2014-12-14 18:18:58 UTC
Is it possible to get the systemd service for redshift?
Thanks

Reproducible: Always




The systemd service is already available in other distros, so it should be a pain to adapt it to gentoo..
Comment 1 Sebastian Pipping gentoo-dev 2014-12-15 13:40:32 UTC
On my system, red-shift is run by gtk-redshift and both of those run under my primary unprivileged user.  I should mention that haven't spend much time with systemd yet and am still using OpenRC.  Still, I wonder if this is really a job for an init system or systemd.  Please elaborate or share an enlightening link with me.  Thanks!

PS: Has upstream been contacted about this?  Providing the needed file upstream is not an option?
Comment 2 Alessandro Molari 2014-12-15 20:43:34 UTC
It's a service, so I think creating a unit could be appropriated..

Also, taking a look at how ArchLinux wiki:
  Autostart
  There are two ways to have redshift automatically started:
  Using the provided systemd service unit files (see Systemd#Using_units).
  Two service files are provided, /usr/lib/systemd/user/redshift.service and
  /usr/lib/systemd/user/redshift-gtk.service: activate only one of them depending
  on whether or not you want the system tray icon.
  Note: For the systemd service unit files to work, you need to set the DISPLAY
  environment variable as it is described here: Systemd/User#Environment_variables
  The 'drm' adjustment method does not require this variable set.
  By right-clicking the system tray icon when redshift-gtk is already launched and
  selecting 'Autostart'.

That way is how archlinux does. of course this is just to take a look how it's implemented somewhere else..
Comment 3 Sebastian Pipping gentoo-dev 2014-12-15 21:10:43 UTC
It turned out that upstream already ships these files.
So I have made configure install them now.
I consider this a fix.  If there's anything missing more, please feel free to re-open the bug.


+*redshift-1.9.1-r2 (15 Dec 2014)
+
+  15 Dec 2014; Sebastian Pipping <sping@gentoo.org> +redshift-1.9.1-r2.ebuild:
+  Install systemd units provided by upstream (bug #532578)
+
Comment 4 Alessandro Molari 2014-12-15 21:12:07 UTC
ok thanks :)