Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ac718d0b by André Apitzsch at 2022-04-03T10:26:00+02:00
chore: Inform users about gajim-remote being deprecated
Part of #8609.
- - - - -
1 changed file:
- gajim/gajim_remote.py
Changes:
=====================================
gajim/gajim_remote.py
=====================================
@@ -28,6 +28,7 @@
import sys
import locale
import signal
+import warnings
from gajim.common import exceptions
from gajim.common.i18n import _
@@ -55,6 +56,16 @@ def send_error(error_message):
print(_('D-Bus is not present on this machine or python module is
missing'))
sys.exit(1)
+if not sys.warnoptions:
+ warnings.simplefilter("default")
+
+warnings.warn(
+ "gajim-remote is deprecated, use Gajim's DBus interface instead. "
+ "For further information see "
+ "https://dev.gajim.org/gajim/gajim/-/wikis/help/GajimDBus.",
+ DeprecationWarning
+)
+
OBJ_PATH = '/org/gajim/dbus/RemoteObject'
INTERFACE = 'org.gajim.dbus.RemoteInterface'
SERVICE = 'org.gajim.Gajim'
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ac718d0b33ef82ddac8119338d6984d33b481770
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ac718d0b33ef82ddac8119338d6984d33b481770
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits