Skip to content

Deprecation warnings #813

@claudiux

Description

@claudiux

Describe the bug
These lines appear in ~/.xsession-errors when mintupdate just started:

/usr/lib/linuxmint/mintUpdate/mintUpdate.py:1338: DeprecationWarning: Gdk.threads_init is deprecated
  Gdk.threads_init()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:766: DeprecationWarning: Gdk.threads_enter is deprecated
  Gdk.threads_enter()
/usr/lib/linuxmint/mintUpdate/mintUpdate.py:773: DeprecationWarning: Gdk.threads_leave is deprecated
  Gdk.threads_leave()

Screenshots
No matters.

To Reproduce
Steps to reproduce the behavior:

  1. Watch ~/.xsession-errors (I use the xsession@claudiux applet)
  2. See error

Expected behavior
Use Gdk.threads_add_idle () and Gdk.threads_add_timeout () instead of these deprecated functions.

Distribution:

  • Linux Mint 21.1
  • LMDE
  • Other (please specify)

Software version:
5.9.8

Logs:

04.29@02:25 ++ Launching Update Manager
04.29@02:25 ++ Changes to the package cache detected, triggering refresh
04.29@02:25 ++ Starting refresh (local only)
04.29@02:25 ++ Initial refresh will happen in 0 day(s), 0 hour(s) and 10 minute(s)
04.29@02:25 ++ System is up to date
04.29@02:25 ++ Refresh finished
04.29@02:35 ++ Update Manager is in tray mode, performing initial refresh
04.29@02:35 ++ Starting refresh (retrieving lists of updates from remote servers)
04.29@02:35 ++ Refreshing available Cinnamon updates from the server
04.29@02:35 ++ Refreshing available Flatpak updates
04.29@02:35 ++ System is up to date
04.29@02:35 ++ Refresh finished
04.29@02:36 ++ Recurring refresh will happen in 0 day(s), 1 hour(s) and 59 minute(s)

Crash report:
No crash.

Additional context
Cinnamon 5.6.8

Locale:
No matters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions