linuxmint / linuxmint/sticky

DeprecationWarning: Gio.DBusConnection.register_object is deprecated

Open
#148 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
273
Forks
57
PR merge metrics
No merged PRs in 30d

Description

I have Sticky 1.24 installed.

A line in my xsession-errors file says:

/usr/lib/sticky/sticky.py:813: DeprecationWarning: Gio.DBusConnection.register_object is deprecated
self.dbus_register_id = connection.register_object(

The corresponding documentation on https://docs.gtk.org/gio/method.DBusConnection.register_object_with_closures.html says:

Deprecated since: 2.84
Deprecated in favour of g_dbus_connection_register_object_with_closures2(), which has more binding-friendly reference counting semantics.`

There is also an issue at the pygobject gitlab page https://gitlab.gnome.org/GNOME/pygobject/-/issues/688

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at sticky.py line 813, where the DBus object is registered, and compare the current call with the replacement documented in the Gio.DBusConnection API. Check the related PyGObject issue for binding considerations; done means Sticky registers the object without emitting the reported deprecation warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.