void-packages/srcpkgs/cinnamon/patches/fix-control-center-check.patch

12 lines
845 B
Diff

diff -Naur cinnamon-1.7.1.orig/files/usr/bin/cinnamon-settings cinnamon-1.7.1/files/usr/bin/cinnamon-settings
--- cinnamon-1.7.1.orig/files/usr/bin/cinnamon-settings 2013-02-21 17:23:45.000000000 +0100
+++ cinnamon-1.7.1/files/usr/bin/cinnamon-settings 2013-03-03 03:03:24.151209998 +0100
@@ -7,7 +7,7 @@
if os.path.exists("/usr/lib/cinnamon-settings/modules/cs_%s.py" % module):
print "Python module"
os.execvp("/usr/lib/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))
- elif os.path.exists("/usr/bin/cinnamon-control-center"):
+ elif os.path.exists("/usr/lib/cinnamon-control-center-1/panels"):
print "Unknown module %s, using cinnamon-control-center" % module
os.execvp("/usr/lib/cinnamon-settings/cinnamon-settings.py", ("",) + tuple(sys.argv[1:]))
elif os.path.exists("/usr/bin/gnome-control-center"):