Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-12-30 12:07:52

monon
Member
Registered: 2020-12-30
Posts: 5

Xfconnect-indicator and kdeconnect

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

#2 2020-12-30 12:48:17

monon
Member
Registered: 2020-12-30
Posts: 5

Re: Xfconnect-indicator and kdeconnect

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

#3 2020-12-31 07:29:11

monon
Member
Registered: 2020-12-30
Posts: 5

Re: Xfconnect-indicator and kdeconnect

What a head!! I've forgottrn to post the link.
Here:
https://github.com/juanramoncastan/xfconnect-indicator

Offline

#4 2021-08-24 22:06:54

thiago
Member
Registered: 2021-07-22
Posts: 6

Re: Xfconnect-indicator and kdeconnect

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

#5 2021-08-24 23:16:13

Misko_2083
Member
Registered: 2015-10-13
Posts: 211
Website

Re: Xfconnect-indicator and kdeconnect

thiago wrote:

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

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

#6 2021-08-25 07:36:08

Misko_2083
Member
Registered: 2015-10-13
Posts: 211
Website

Re: Xfconnect-indicator and kdeconnect

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

#7 2021-08-26 18:19:55

thiago
Member
Registered: 2021-07-22
Posts: 6

Re: Xfconnect-indicator and kdeconnect

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

#8 2021-08-27 08:45:43

Misko_2083
Member
Registered: 2015-10-13
Posts: 211
Website

Re: Xfconnect-indicator and kdeconnect

thiago wrote:

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

#9 2021-08-27 17:25:20

monon
Member
Registered: 2020-12-30
Posts: 5

Re: Xfconnect-indicator and kdeconnect

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

#10 2021-08-28 14:12:57

monon
Member
Registered: 2020-12-30
Posts: 5

Re: Xfconnect-indicator and kdeconnect

The last commit in github
https://github.com/juanramoncastan/xfconnect-indicator
solves this issue. (I think so!!!)
Make me know about it

Offline

#11 2022-07-08 19:31:12

BakedGoodz
Member
Registered: 2022-07-08
Posts: 1

Re: Xfconnect-indicator and kdeconnect

Total newb here. Can you post simple walk through on how to install this?

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 10 queries executed - Memory usage: 562.77 KiB (Peak: 580.05 KiB) ]