Results 1 to 3 of 3

Thread: Run python script at login screen

  1. #1
    Join Date
    May 2012
    Beans
    4

    Run python script at login screen

    I use a python script to set brightness to zero.
    Code:
    #!/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?

  2. #2
    Join Date
    Sep 2012
    Location
    Denver,Colorado
    Beans
    243
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Run python script at login screen

    You might be able to stick it in here
    /etc/lightdm/lightdm.conf
    I dunno though though I looked around for a place to put it and can't really find anything.
    + Linux Mint 13 Cinnamon 64bit +
    Lubuntu 12.04 PPC 32bit G4 | Ubuntu 12.04 PPC 64bit G5

  3. #3
    Join Date
    May 2012
    Beans
    4

    Re: Run python script at login screen

    but it is configuration file(which stores cofig data usually). It is not the one which isn't executed when lightdm starts.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •