You are not logged in.
Pages: 1
I've coded in python a kdeconnect indicator for Xfce environtment
I'd like to get some feddback, opinions, etc
Why?
It doen't exist a *connect for xfce so I use kdeconnect, but de problem is kdeconnect-indicator doesn't work 100%.
i.e. the option "Browse" doesn't work properly and sometimes (the most), it doesn't launch Thunar but catfish or boabab or some other application. (Maybe it is fault between the time after mount the remote file system and it launches the application to browse it).
What?
xfconnect-indicator uses gtk 3 and dbus to access kdeconnect service.
It shows only paired devices ( you must to pair them with Configure menu item, which launches kdeconnectsettings)
When a paired device is not reachable, its item is not clickable.
In the device menu you can find:
Battery info
Browse remote file system
Ring device
Send a file
Share clipboard
I will thank all thoughs
Offline
I would like to warn that I am not a programmer so the code can be improved a lot. Now is a bit rude and primitive... as I am. :-)
Offline
What a head!! I've forgottrn to post the link.
Here:
https://github.com/juanramoncastan/xfconnect-indicator
Offline
I got this error when trying to run it:
Traceback (most recent call last):
File "/usr/local/bin/xfconnect-indicator.py", line 16, in <module>
gi.require_version('AppIndicator3', '0.1')
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available
OS: Debian 11, XFCE 4.16
Last edited by thiago (2021-08-24 22:07:29)
Offline
I got this error when trying to run it:
Traceback (most recent call last):
File "/usr/local/bin/xfconnect-indicator.py", line 16, in <module>
gi.require_version('AppIndicator3', '0.1')
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 126, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not availableOS: Debian 11, XFCE 4.16
What a coincidence we just had that discussion in the previous thread. :-)
No idea what happened to AppIndicator3 but I found out that AyatanaAppIndicator3 is a continuation of AppIndicator3.
I've sent the patch that tests if one of those is available and then imports it.
https://github.com/Misko-2083/xfconnect … f32e06b465
The python bindings for ayatana app indicator are in the package gir1.2-ayatanaappindicator3-0.1 in Debian 11 repos
Last edited by Misko_2083 (2021-08-24 23:26:32)
Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c
Offline
It's now applied https://github.com/juanramoncastan/xfco … 6edfb1eb5a
You can install gir1.2-ayatanaappindicator3-0.1
apt install gir1.2-ayatanaappindicator3-0.1
And try the new https://github.com/juanramoncastan/xfconnect-indicator
Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c
Offline
I tested again, now it gives this error:
Traceback (most recent call last):
File "/usr/local/bin/xfconnect-indicator.py", line 323, in <module>
indicatorApp = indicatorObject('../share/xfconnect/xfconnect-icon.svg') # Creating indicator object
File "/usr/local/bin/xfconnect-indicator.py", line 53, in __init__
kdecon_get_devices(self)
File "/usr/local/bin/xfconnect-indicator.py", line 96, in kdecon_get_devices
charge = device_method(key,connected,'battery','charge')
File "/usr/local/bin/xfconnect-indicator.py", line 193, in device_method
return method()
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
return self._connection.call_blocking(self._named_service,
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
reply_message = self.send_message_with_reply_and_block(
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownInterface: No such interface 'org.kde.kdeconnect.device.battery' at object path '/modules/kdeconnect/devices/14dcc63cd5826133'
Last edited by thiago (2021-08-26 18:21:51)
Offline
I tested again, now it gives this error:
Traceback (most recent call last): File "/usr/local/bin/xfconnect-indicator.py", line 323, in <module> indicatorApp = indicatorObject('../share/xfconnect/xfconnect-icon.svg') # Creating indicator object File "/usr/local/bin/xfconnect-indicator.py", line 53, in __init__ kdecon_get_devices(self) File "/usr/local/bin/xfconnect-indicator.py", line 96, in kdecon_get_devices charge = device_method(key,connected,'battery','charge') File "/usr/local/bin/xfconnect-indicator.py", line 193, in device_method return method() File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 72, in __call__ return self._proxy_method(*args, **keywords) File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__ return self._connection.call_blocking(self._named_service, File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking reply_message = self.send_message_with_reply_and_block( dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownInterface: No such interface 'org.kde.kdeconnect.device.battery' at object path '/modules/kdeconnect/devices/14dcc63cd5826133'
Maybe it's time to open an issues on github https://github.com/juanramoncastan/xfco … tor/issues
and contact the developer.
Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c
Offline
Hola Thiago. I will trick it as soon as possible.
For the while open kdeconnect-settings and enable battery monitor and if you want to use this feature must it enable also in your phone
Offline
The last commit in github
https://github.com/juanramoncastan/xfconnect-indicator
solves this issue. (I think so!!!)
Make me know about it
Offline
Total newb here. Can you post simple walk through on how to install this?
Offline
Pages: 1
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 566.63 KiB (Peak: 583.91 KiB) ]