Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions usr/lib/linuxmint/mintUpdate/mintUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
print(sys.exc_info()[0])

setproctitle.setproctitle("mintUpdate")
GLib.set_prgname("mintupdate")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, can you move this to maybe just after the import gi call on line 7:

# system imports
import os
import sys
import gi

from gi.repository import GLib
GLib.set_prgname("mintupdate")

import time
...

(and remove the later GLib import)

This way, both res_class and res_name are updated. If it's performed after the Gtk import, only res_name can be updated.

Doing this allows you to eliminate the matching desktop file change - I'd rather only have this done in one place.


# i18n
APP = 'mintupdate'
Expand Down
1 change: 1 addition & 0 deletions usr/share/applications/mintupdate.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,4 @@ Encoding=UTF-8
Categories=Application;System;Settings;XFCE;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
StartupNotify=false
NotShowIn=KDE;
StartupWMClass=mintupdate