-
-
Save robertmarsal/9feaa9150926efa4175a to your computer and use it in GitHub Desktop.
sudo apt-get install python-glade2 python-appindicator | |
git clone https://github.com/Kilian/f.lux-indicator-applet.git | |
cd f.lux-indicator-applet | |
chmod +x setup.py | |
sudo ./setup.py install | |
fluxgui |
THANK YOU! But I met this strage error message on my ThinkPad X220 laptop which runs Ubuntu 14.04 x64 on it:
...
gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
Error: Please install xflux in the PATH
Critical error. Exiting.
...
I checked the xflux
path use which xflux
command and got this message: xflux not found
Then I type ls -l /usr/local/bin/xflux
found the xflux
program does not got the right privilege.
So I tried this sudo chmod +x /usr/local/bin/xflux
and everything is OK.
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py:100: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type GdkColor
gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py:100: Warning: g_value_unset: assertion 'G_IS_VALUE (value)' failed
gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py:100: GtkWarning: Cannot transform xsetting Net/IconThemeName of type gchararray to type gint
gtk.gdk.screen_get_default().get_setting('gtk-icon-theme-name')
Error: Please install xflux in the PATH
Critical error. Exiting.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 270, in <module>
app = FluxGUI()
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 30, in __init__
self.exit(1)
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 49, in exit
gtk.main_quit()
RuntimeError: called outside of a mainloop
I was installing on Ubuntu 14.04 LTS and got this error. ANy idea how to resolve this?
I was installing on Ubuntu 14.04 LTS and got this error. ANy idea how to resolve this?
sudo chmod 755 /usr/local/bin/xflux
@DmitrySandalov Thank you, started working! 👍
@DmitrySandalov thank you your answer worked for me.
I have tried to install f.lux on Ubuntu 16.04 LTS and received this error:
fluxgui
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 3, in <module>
from fluxgui import fluxcontroller, settings
File "/usr/local/lib/python2.7/dist-packages/fluxgui/settings.py", line 3, in <module>
from xdg.DesktopEntry import DesktopEntry
ImportError: No module named xdg.DesktopEntry
I am quite new to Ubuntu and have no idea what to make of this. I have already tried the additional packages and fixes mentioned above.
Thanks in advance for your support.
I have tried to install f.lux on Ubuntu 16.04 LTS and received this error:
fluxgui
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/fluxgui/fluxapp.py", line 3, in
from fluxgui import fluxcontroller, settings
File "/usr/local/lib/python2.7/dist-packages/fluxgui/settings.py", line 3, in
from xdg.DesktopEntry import DesktopEntry
ImportError: No module named xdg.DesktopEntry
I am quite new to Ubuntu and have no idea what to make of this. I have already tried the additional packages and fixes mentioned above.
Thanks in advance for your support.
sudo apt-get install python-xdg
Thanks @ferstar works on Ubuntu 16.04 LTS. With mine it was the permissions issues
On Ubuntu 16.04 LTS I get this error:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/fluxgui/fluxapp.py", line 3, in <module>
from fluxgui import fluxcontroller, settings
File "/usr/local/lib/python2.7/site-packages/fluxgui/fluxcontroller.py", line 1, in <module>
from fluxgui import xfluxcontroller
File "/usr/local/lib/python2.7/site-packages/fluxgui/xfluxcontroller.py", line 1, in <module>
import pexpect
ImportError: No module named pexpect
I've tried with the different solutions postes in this post but it is still not working...
@ferstar recommendation worked perfectly:
sudo chmod +x /usr/local/bin/xflux
I installed f.lux in Ubuntu14.04, using:
$ sudo add-apt-repository ppa:nathan-renniewaldock/flux
$ sudo apt-get update
$suod apt-get install fluxgui
and then, I started it by
$ fluxgui.
error came up as
"Traceback (most recent call last):
File "/usr/bin/fluxgui", line 17, in
from fluxgui.fluxapp import main
ImportError: cannot import name main"
Any advice to deal with it?
THANK YOU! Been trying to get f.lux working on my Xubuntu 14.04 setup for a week now, and this one finally worked. You, sir, deserve a few cookies.