21 lines
889 B
Diff
21 lines
889 B
Diff
diff -up pyxdg-0.23/xdg/Menu.py.869877 pyxdg-0.23/xdg/Menu.py
|
|
--- pyxdg-0.23/xdg/Menu.py.869877 2012-07-25 18:59:15.000000000 -0400
|
|
+++ pyxdg-0.23/xdg/Menu.py 2012-10-26 10:24:26.122225592 -0400
|
|
@@ -889,8 +889,14 @@ def __mergeLegacyDir(dir, prefix, filena
|
|
return m
|
|
|
|
def __parseKDELegacyDirs(filename, parent):
|
|
- output = subprocess.check_output(['kde-config', '--path', 'apps'],
|
|
- universal_newlines=True).splitlines()
|
|
+ try:
|
|
+ output = subprocess.check_output(['kde-config', '--path', 'apps'],
|
|
+ universal_newlines=True).splitlines()
|
|
+ except OSError:
|
|
+ # print("Error executing kde-config. Error was ", OSError)
|
|
+ # Oh well, we tried.
|
|
+ output = []
|
|
+
|
|
try:
|
|
for dir in output[0].split(":"):
|
|
__parseLegacyDir(dir,"kde", filename, parent)
|