[gnome-tweak-tool] Only support nautilus when started by gsettings
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool] Only support nautilus when started by gsettings
- Date: Wed, 21 Aug 2013 22:22:30 +0000 (UTC)
commit 1c463bc15a82019c3c79c7a8222e19546f44f66a
Author: John Stowers <john stowers gmail com>
Date: Thu Aug 22 00:14:48 2013 +0200
Only support nautilus when started by gsettings
gtweak/tweaks/tweak_group_desktop.py | 27 +--------------------------
1 files changed, 1 insertions(+), 26 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_desktop.py b/gtweak/tweaks/tweak_group_desktop.py
index 6e5d4de..ead5e52 100644
--- a/gtweak/tweaks/tweak_group_desktop.py
+++ b/gtweak/tweaks/tweak_group_desktop.py
@@ -17,34 +17,9 @@
from gi.repository import Gtk
-import gtweak
-from gtweak.utils import AutostartManager
from gtweak.widgets import ListBoxTweakGroup, GSettingsSwitchTweak, GSettingsComboEnumTweak,
GSettingsFileChooserButtonTweak, GSettingsCheckTweak, Title
-class DesktopIconTweak(GSettingsSwitchTweak):
- def __init__(self, **options):
- GSettingsSwitchTweak.__init__(self,
- _("Icons on Desktop"),
- "org.gnome.desktop.background",
- "show-desktop-icons",
- **options)
-
- #when the user enables nautilus to draw the desktop icons, set nautilus
- #to autostart
- self.nautilus = AutostartManager("nautilus.desktop",
- autostart_desktop_filename="nautilus-autostart.desktop",
- exec_cmd="nautilus -n")
- #we only need to install the desktop file on old versions of nautilus/gnome-session.
- #new ones use the new AutostartCondition and watch the gsettings key automatically
- if not self.nautilus.uses_autostart_condition("GSettings"):
- self.settings.connect('changed::'+self.key_name, self._on_setting_changed)
-
- def _on_setting_changed(self, setting, key):
- self.nautilus.update_start_at_login(
- self.settings.get_boolean(key))
-
-
-dicons = DesktopIconTweak()
+dicons = GSettingsSwitchTweak(_("Icons on Desktop"),"org.gnome.desktop.background","show-desktop-icons")
TWEAK_GROUPS = [
ListBoxTweakGroup(_("Desktop"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]