[gnome-tweak-tool] startup: Honor disabled user autostart files



commit bfd13be051e27054d4f27f37e3dee44b9037db06
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Sep 21 16:01:28 2015 +0200

    startup: Honor disabled user autostart files
    
    Disabled user autostart files shouldn't be shown as autostarted apps
    since gnome-session doesn't start them.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750435

 gtweak/tweaks/tweak_group_startup.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_startup.py b/gtweak/tweaks/tweak_group_startup.py
index ea60e24..94d08b0 100644
--- a/gtweak/tweaks/tweak_group_startup.py
+++ b/gtweak/tweaks/tweak_group_startup.py
@@ -288,6 +288,9 @@ class AutostartListBoxTweakGroup(ListBoxTweakGroup):
                 logging.warning("Error loading desktopfile: %s" % f)
                 continue
 
+            if not AutostartFile(df).is_start_at_login_enabled():
+                continue
+
             sdf = _StartupTweak(df)
             sdf.btn.connect("clicked", self._on_remove_clicked, sdf, df)
             tweaks.append( sdf )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]