How to run python script at login screen?
Posted
by
virpara
on Ask Ubuntu
See other posts from Ask Ubuntu
or by virpara
Published on 2012-10-01T14:27:10Z
Indexed on
2012/10/01
15:53 UTC
Read the original article
Hit count: 437
I use a python script to set brightness to zero.
#!/usr/bin/python
import dbus
bus = dbus.SessionBus()
proxy = bus.get_object('org.gnome.SettingsDaemon',
'/org/gnome/SettingsDaemon/Power')
iface = dbus.Interface(proxy,dbus_interface='org.gnome.SettingsDaemon.Power.Screen')
iface.SetPercentage(0)
I've put it in Startup Applications. It works only when I login. There is full brightness at login screen.
Where should I put this so that it sets brightness to zero at login screen?
© Ask Ubuntu or respective owner