From cc8ebada17eb365c21625b4c64b04115c0580fde Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 26 Jul 2015 19:57:10 +0100 Subject: clean some deprecated ebuilds...no distfiles available anymore --- gnome-base/gdm/files/gdm-set-session | 52 ------------------------------------ 1 file changed, 52 deletions(-) delete mode 100755 gnome-base/gdm/files/gdm-set-session (limited to 'gnome-base/gdm/files/gdm-set-session') 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 \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() -- cgit v1.2.3