jonls / redshift

Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
http://jonls.dk/redshift
GNU General Public License v3.0
5.91k stars 429 forks source link

Invoking redshift-gtk from terminal triggers an error message when terminal window is closed #424

Open skytreader opened 7 years ago

skytreader commented 7 years ago

Happens even if I use nohup and add process to background. More details:

System: Ubuntu 16.04 with NVIDIA GTX960M. The NVIDIA driver used is version 367.57 (proprietary from nvidia 367).

Steps to reproduce:

  1. Open a terminal and invoke redshift-gtk as nohup redshift-gtk &. The redshift applet appears at the Ubuntu top bar.
  2. Exit the terminal window by invoking the exit command or by clicking on the window's 'x' button.
  3. The following window appears right after:

redshift-gtk-fail

That despite the fact that the applet icon is already at the top bar. Clicking on "OK" removes the applet icon but the screen remains filtered. ps -eaf | grep redshift on a new terminal window confirms that there is no redshift running anymore.

Just to show how it was before I closed the terminal:

chad@zangetsu:~$ nohup redshift-gtk &
[1] 29103
chad@zangetsu:~$ nohup: ignoring input and appending output to 'nohup.out'

chad@zangetsu:~$ 
chad@zangetsu:~$ ps -eaf | grep redshift
chad     29103 29063  1 23:23 pts/21   00:00:00 /usr/bin/python3 /usr/bin/redshift-gtk
chad     29107 29103  0 23:23 pts/21   00:00:00 /usr/bin/redshift -v
chad     29114 29063  0 23:23 pts/21   00:00:00 grep --color=auto redshift
chad@zangetsu:~$

Reproducibility: Happens most of the time with the steps outlined above but, strangely, not always.

jonls commented 7 years ago

It sounds like the redshift process crashed when these steps were performed. Would it possible to attach a debugger to the process to see what happens?