]> Dogcows Code - chaz/openbox/blobdiff - tools/xdg-autostart/xdg-autostart
Fix a typo in xdg-autostart
[chaz/openbox] / tools / xdg-autostart / xdg-autostart
index 7648d8c4fc56b95064a85e74d003fcce85bb4985..4a53382669443bd0dce7065899925e8c42f49a5b 100755 (executable)
@@ -80,7 +80,7 @@ class AutostartFile:
     def __str__(self):
         return self.path + " : " + self.de.getName()
 
-    def _isexecfile(path):
+    def _isexecfile(self, path):
         return os.access(path, os.X_OK)
 
     def _findFile(self, path, search, match_func):
@@ -90,6 +90,7 @@ class AutostartFile:
         if path[0] == '/':
             if match_func(path): return path
             else: return None
+        else:
             # check relative path
             for dirname in search.split(os.pathsep):
                 if dirname != "":
@@ -120,7 +121,7 @@ class AutostartFile:
                 self._alert("Excluded by: OnlyShowIn (" + s + ")")
             if default and noshow and not force:
                 s = ""
-                for i in self.de.getOnlyShowIn():
+                for i in self.de.getNotShowIn():
                     if s: s += ", "
                     s += i
                 self._alert("Excluded by: NotShowIn (" + s + ")")
This page took 0.021921 seconds and 4 git commands to generate.