diff options
author | V3n3RiX <venerix@rogentos.ro> | 2015-07-26 19:57:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2015-07-26 19:57:10 +0100 |
commit | cc8ebada17eb365c21625b4c64b04115c0580fde (patch) | |
tree | 7d764a42923e96c5654207eb02121d9fa06b0eef /gnome-base/gdm/files/gdm-set-session | |
parent | 6927177a7ec90d5fc35926b7da45c0886673bc50 (diff) |
clean some deprecated ebuilds...no distfiles available anymore
Diffstat (limited to 'gnome-base/gdm/files/gdm-set-session')
-rwxr-xr-x | gnome-base/gdm/files/gdm-set-session | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/gnome-base/gdm/files/gdm-set-session b/gnome-base/gdm/files/gdm-set-session deleted file mode 100755 index 491b9a67..00000000 --- a/gnome-base/gdm/files/gdm-set-session +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/python -"""Simple script that updates the default session in AccountServices""" - -import sys -import time - -from gi.repository import GLib as glib - -import dbus -from dbus.mainloop.glib import DBusGMainLoop - -ACCOUNTS_DBUS_NAME = "org.freedesktop.Accounts" -ACCOUNTS_DBUS_PATH = "/org/freedesktop/Accounts" -ACCOUNTS_USER_DBUS_NAME = "org.freedesktop.Accounts.User" - -if __name__ == "__main__": - - try: - username = sys.argv[1] - session = sys.argv[2] - except IndexError: - sys.stderr.write("%s <username> <default session>\n") - raise SystemExit(1) - - dbus_loop = DBusGMainLoop(set_as_default = True) - loop = glib.MainLoop() - glib.threads_init() - - def setup(): - try: - system_bus = dbus.SystemBus(mainloop=dbus_loop) - dbus_object = system_bus.get_object( - ACCOUNTS_DBUS_NAME, ACCOUNTS_DBUS_PATH) - - iface = dbus.Interface( - dbus_object, dbus_interface=ACCOUNTS_DBUS_NAME) - - user_path = iface.FindUserByName(username) - - dbus_object = system_bus.get_object( - ACCOUNTS_DBUS_NAME, user_path) - - iface_usr = dbus.Interface( - dbus_object, dbus_interface=ACCOUNTS_USER_DBUS_NAME) - - iface_usr.SetXSession(session) - - finally: - loop.quit() - - glib.timeout_add(0, setup) - loop.run() |