File cinnamon-no-gksu-requirement.patch of Package cinnamon
--- a/files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js
+++ b/files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js
@@ -162,10 +162,6 @@ ApplicationContextMenuItem.prototype = {
AppFavorites.getAppFavorites().removeFavorite(this._appButton.app.get_id());
this._appButton.toggleMenu();
break;
- } case "uninstall": {
- Util.spawnCommandLine("gksu -m '" + _("Please provide your password to uninstall this application") + "' /usr/bin/cinnamon-remove-application '" + this._appButton.app.get_app_info().get_filename() + "'");
- this._appButton.appsMenuButton.menu.close();
- break;
} case "run_with_nvidia_gpu": {
Util.spawnCommandLine("optirun gtk-launch " + this._appButton.app.get_id());
this._appButton.appsMenuButton.menu.close();
--- a/files/usr/share/cinnamon/cinnamon-settings/bin/SettingsWidgets.py
+++ b/files/usr/share/cinnamon/cinnamon-settings/bin/SettingsWidgets.py
@@ -205,6 +205,7 @@ class SAModule:
def process (self):
name = self.name.replace("gksudo ", "")
name = name.replace("gksu ", "")
+ name = name.replace("xdg-su -c ", "")
name = name.split()[0]
for path in os.environ["PATH"].split(os.pathsep):
--- a/files/usr/share/cinnamon/cinnamon-settings/bin/Spices.py
+++ b/files/usr/share/cinnamon/cinnamon-settings/bin/Spices.py
@@ -586,12 +586,12 @@ class Spice_Harvester(GObject.Object):
schema = [filename for filename in contents if 'gschema.xml' in filename]
for filename in schema:
- if os.path.exists('/usr/bin/gksu') and os.path.exists(config.currentPath + "/bin/installSchema.py"):
+ if os.path.exists('/usr/bin/xdg-su') and os.path.exists(config.currentPath + "/bin/installSchema.py"):
message = _("Please enter your password to install the required settings schema for %s") % (uuid)
path = os.path.join(uuidfolder, filename)
tool = config.currentPath + "/bin/installSchema.py"
- command = 'gksu --message "<b>%s</b>" %s %s' % (message, tool, path)
+ command = 'xdg-su -c %s %s' % (tool, path)
os.system(command)
else:
self.errorMessage(_("Could not install the settings schema for %s. You will have to perform this step yourself.") % (uuid))
@@ -647,9 +647,9 @@ class Spice_Harvester(GObject.Object):
if not self.themes:
if 'schema-file' in self.meta_map[uuid]:
sentence = _("Please enter your password to remove the settings schema for %s") % (uuid)
- if os.path.exists('/usr/bin/gksu') and os.path.exists(config.currentPath + "/bin/removeSchema.py"):
+ if os.path.exists('/usr/bin/xdg-su') and os.path.exists(config.currentPath + "/bin/removeSchema.py"):
for file in self.meta_map[uuid]:
- launcher = 'gksu --message "<b>%s</b>"' % sentence
+ launcher = 'xdg-su -c'
tool = config.currentPath + "/bin/removeSchema.py %s" % (file)
command = '%s %s' % (launcher, tool)
os.system(command)