linuxmint / mintupdate

The Linux Mint Update Manager
309 stars 152 forks source link

mintupdate produces .xsession-errors Gdk.threads_init is deprecated #822

Open ChooChooAl opened 1 year ago

ChooChooAl commented 1 year ago

Describe the bug multiple line entries in ~/.xsession-errors file

To Reproduce No action to reproduce. Just let system start as normal and probably wait for mintupdate to launch

Distribution: Linux Mint 21.3 cinnamon

Software version: 5.9.8

Logs: 06.21@08:53 ++ Launching Update Manager 06.21@08:53 ++ Changes to the package cache detected, triggering refresh 06.21@08:53 ++ Starting refresh (local only) 06.21@08:53 ++ Initial refresh will happen in 0 day(s), 0 hour(s) and 10 minute(s) 06.21@08:53 ++ System is up to date 06.21@08:53 ++ Refresh finished 06.21@09:03 ++ Update Manager is in tray mode, performing initial refresh 06.21@09:03 ++ Starting refresh (retrieving lists of updates from remote servers) 06.21@09:03 ++ Refreshing available Cinnamon updates from the server 06.21@09:03 ++ Refreshing available Flatpak updates 06.21@09:03 ++ System is up to date 06.21@09:03 ++ Refresh finished 06.21@09:03 ++ Recurring refresh will happen in 0 day(s), 0 hour(s) and 59 minute(s) 06.21@10:03 ++ Update Manager window is open, delaying recurring refresh by 60s 06.21@10:04 ++ Recurring refresh will happen in 0 day(s), 0 hour(s) and 1 minute(s) 06.21@10:05 ++ Update Manager window is open, delaying recurring refresh by 60s 06.21@10:06 ++ Recurring refresh will happen in 0 day(s), 0 hour(s) and 1 minute(s) 06.21@10:07 ++ Update Manager window is open, delaying recurring refresh by 60s

Additional context These are the lines in .xsession-errors /usr/lib/linuxmint/mintUpdate/mintUpdate.py:1338: DeprecationWarning: Gdk.threads_init is deprecated /usr/lib/linuxmint/mintUpdate/mintUpdate.py:766: DeprecationWarning: Gdk.threads_enter is deprecated /usr/lib/linuxmint/mintUpdate/mintUpdate.py:773: DeprecationWarning: Gdk.threads_leave is deprecated

LinuxOnTheDesktop commented 11 months ago

Cf. #812.

ChooChooAl commented 10 months ago

Note: Linux Mint version should probably have been 20.3 however I've upgraded to 21.2 and the errors still occur. Doesn't seem to hurt anything (that I can see) just looks like the code should be tweaked. Mint update 6.0.3 /usr/lib/linuxmint/mintUpdate/mintUpdate.py:1368: DeprecationWarning: Gdk.threads_init is deprecated Gdk.threads_init() /usr/lib/linuxmint/mintUpdate/mintUpdate.py:1751: DeprecationWarning: Gdk.threads_enter is deprecated Gdk.threads_enter() /usr/lib/linuxmint/mintUpdate/mintUpdate.py:796: DeprecationWarning: Gdk.threads_leave is deprecated Gdk.threads_leave()

timur-g commented 3 weeks ago

Duplicate of https://github.com/linuxmint/mintupdate/issues/691 .