Skip to content

Commit

Permalink
inhibit: Fix inhibitor name
Browse files Browse the repository at this point in the history
This is used to find the .desktop name to properly show the app
name and icon during a logout.
  • Loading branch information
clefebvre committed Dec 1, 2024
1 parent 4b3a579 commit 2dbcd1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/lib/linuxmint/mintUpdate/mintUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ def get_inhibitor_info(self, reason):
name = "org.freedesktop.PowerManagement"
path = "/org/freedesktop/PowerManagement/Inhibit"
iface = "org.freedesktop.PowerManagement.Inhibit"
args = GLib.Variant("(ss)", ("MintUpdate", reason))
args = GLib.Variant("(ss)", ("mintupdate", reason))
uninhibit_method = "UnInhibit"
else:
# https://github.com/linuxmint/cinnamon-session/blob/master/cinnamon-session/csm-inhibitor.h#L51-L58
Expand All @@ -1885,7 +1885,7 @@ def get_inhibitor_info(self, reason):
name = "org.gnome.SessionManager"
path = "/org/gnome/SessionManager"
iface = "org.gnome.SessionManager"
args = GLib.Variant("(susu)", ("MintUpdate", xid, reason, flags))
args = GLib.Variant("(susu)", ("mintupdate", xid, reason, flags))
uninhibit_method = "Uninhibit"

return name, path, iface, args, uninhibit_method
Expand Down

0 comments on commit 2dbcd1b

Please sign in to comment.