def set_sound_theme(self, theme): if self.desktop == "mate": gstheme = gsettings.get_schema('org.mate.sound') gstheme.set_string('theme-name', theme) else: gstheme = gsettings.get_schema('org.gnome.desktop.sound') gstheme.set_string('theme-name', theme)
def set_sound_theme(self, theme): if self.desktop == "mate": gstheme = gsettings.get_schema('org.mate.sound') gstheme.set_string('theme-name',theme) else: gstheme = gsettings.get_schema('org.gnome.desktop.sound') gstheme.set_string('theme-name',theme)
def set_cursor_size(self, size): if self.desktop == "mate": gstheme = gsettings.get_schema('org.mate.peripherals-mouse') gstheme.set_int('cursor-size', size) else: gstheme = gsettings.get_schema('org.gnome.desktop.interface') gstheme.set_int('cursor-size', size)
def set_cursor_theme(self, theme): if self.desktop == "mate": gstheme = gsettings.get_schema('org.mate.peripherals-mouse') gstheme.set_string('cursor-theme', theme) else: gstheme = gsettings.get_schema('org.gnome.desktop.interface') gstheme.set_string('cursor-theme', theme)
def set_icon_theme(self, theme): if self.desktop == "mate": gstheme = gsettings.get_schema('org.mate.interface') gstheme.set_string('icon-theme',theme) else: gstheme = gsettings.get_schema('org.gnome.desktop.interface') gstheme.set_string('icon-theme',theme)
def set_theme(self, theme): if self.desktop == "mate": gstheme = gsettings.get_schema('org.mate.interface') gstheme.set_string('gtk-theme',theme) else: gstheme = gsettings.get_schema('org.gnome.desktop.interface') gstheme.set_string('gtk-theme',theme) _gstheme = gsettings.get_schema('org.gnome.desktop.wm.preferences') _gstheme.set_string('theme',theme)
def get_launcher_have_showdesktopicon(self): launcher = gsettings.get_schema('com.canonical.Unity.Launcher') icons = launcher.get_strv('favorites') desktop = 'unity://desktop-icon' if desktop in icons: return True else: return False
def set_launcher_have_showdesktopicon(self, flag): launcher = gsettings.get_schema('com.canonical.Unity.Launcher') icons = launcher.get_strv('favorites') desktop = 'unity://desktop-icon' if flag == True: if desktop not in icons: icons.append(desktop) launcher.set_strv('favorites', icons) else: if desktop in icons: icons.remove(desktop) launcher.set_strv('favorites', icons)
def set_sound_theme(self, theme): gstheme = gsettings.get_schema('org.gnome.desktop.sound') gstheme.set_string('theme-name',theme)
def set_cursor_size(self, size): gstheme = gsettings.get_schema('org.gnome.desktop.interface') gstheme.set_int('cursor-size', size)
def set_cursor_theme(self, theme): gstheme = gsettings.get_schema('org.gnome.desktop.interface') gstheme.set_string('cursor-theme', theme)
def set_icon_theme(self, theme): gstheme = gsettings.get_schema('org.gnome.desktop.interface') gstheme.set_string('icon-theme', theme)