How to run python script at login screen?
- by virpara
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?