d004409af9
Arch Linux's default "python" install points to Python 3, and mintmenu is certainly not compatible with it! Closes #134.
21 lines
1.0 KiB
Python
Executable File
21 lines
1.0 KiB
Python
Executable File
#!/usr/bin/python2
|
|
|
|
import sys, os
|
|
|
|
if len(sys.argv) > 1:
|
|
if (sys.argv[1] in ["help", "h", "-?", "--help", "-h", "?"]):
|
|
print "mintMenu - the advanced MATE menu\n"
|
|
print "options:"
|
|
print " [--]help, [-]h Display this help."
|
|
print " [--]clean, [--]clear, [--]reset Restore settings to default.\n"
|
|
elif (sys.argv[1] in ["clean", "clear", "reset", "--clean", "--clear", "--reset"]):
|
|
os.system("gsettings reset-recursively com.linuxmint.mintmenu")
|
|
os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.places")
|
|
os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.applications")
|
|
os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.recent")
|
|
os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.system_management")
|
|
os.system("rm -rf ~/.linuxmint/mintMenu")
|
|
print "All mintMenu settings are now restored to default"
|
|
else:
|
|
os.system("/usr/lib/linuxmint/mintMenu/mintMenu.py")
|