diff options
author | Jasper St. Pierre <[email protected]> | 2012-05-01 17:19:24 -0400 |
---|---|---|
committer | Alexei Sorokin <[email protected]> | 2016-08-22 23:03:32 +0300 |
commit | b9f9932db7d6583933c4c5c28e2f945b77c9548a (patch) | |
tree | 51d9b66e65c592a79297175a21dd2ae91db4aa99 /Mozo/MenuEditor.py | |
parent | d8f69da64b0b4f2ea74f9688f65de6fdb1fb67ac (diff) | |
download | mozo-b9f9932db7d6583933c4c5c28e2f945b77c9548a.tar.bz2 mozo-b9f9932db7d6583933c4c5c28e2f945b77c9548a.tar.xz |
util: use GLib for xdg basedir spec stuff
Diffstat (limited to 'Mozo/MenuEditor.py')
-rw-r--r-- | Mozo/MenuEditor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mozo/MenuEditor.py b/Mozo/MenuEditor.py index 80ef2dd..71a76eb 100644 --- a/Mozo/MenuEditor.py +++ b/Mozo/MenuEditor.py @@ -180,7 +180,7 @@ class MenuEditor: def canRevert(self, item): if item.get_type() == matemenu.TYPE_ENTRY: - if util.getItemPath(item.get_desktop_file_id()): + if util.getItemPath(item.get_desktop_file_id()) is not None: path = util.getUserItemPath() if os.path.isfile(os.path.join(path, item.get_desktop_file_id())): return True @@ -189,7 +189,7 @@ class MenuEditor: file_id = os.path.split(item.get_desktop_file_path())[1] else: file_id = item.get_menu_id() + '.directory' - if util.getDirectoryPath(file_id): + if util.getDirectoryPath(file_id) is not None: path = util.getUserDirectoryPath() if os.path.isfile(os.path.join(path, file_id)): return True |