X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=tools%2Fxdg-autostart%2Fxdg-autostart;h=4a53382669443bd0dce7065899925e8c42f49a5b;hb=b8e994e837d260860a4dc0a1ee3a680e2cdfc75a;hp=7648d8c4fc56b95064a85e74d003fcce85bb4985;hpb=a291ba6019f0cd2e679a302312b50da5769c2790;p=chaz%2Fopenbox diff --git a/tools/xdg-autostart/xdg-autostart b/tools/xdg-autostart/xdg-autostart index 7648d8c4..4a533826 100755 --- a/tools/xdg-autostart/xdg-autostart +++ b/tools/xdg-autostart/xdg-autostart @@ -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 + ")")