-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD support #37
Comments
I've done zero testing on FreeBSD, but if KDE and DBUS function as expected, it might work (I'm not certain if the DBUS library supports FreeBSD correctly). Please run:
from a terminal. |
It seems to give an error when I run it with that flag
Although the version is reported as "0.1.3" I built it from commit f155e96 KDE connect does work and my phone and computer is paired |
So it appears to be connecting to DBUS okay, but it can't find the kdeconnect DBUS interfaces where they're expected to be. Please provide your kdeconnect version, and the output from:
OT: The version mismatch is an artefact of the crude version checking in the extension, I've separated the CLI version and protocol version to make troubleshooting easier in future, thanks for reminding me. |
Sure here is the version of kdeconnect daemon I'm working with as well as the
output from the qdbus command:
```
[/u/h/vendion]─> /usr/local/lib/libexec/kdeconnectd --version
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-vendion'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-vendion'
kdeconnect.daemon 1.4.0
[/u/h/vendion]─> qdbus org.kde.kdeconnect
/
/MainApplication
/modules
/modules/kdeconnect
/modules/kdeconnect/devices
/modules/kdeconnect/devices/93ae7c11a3901af9
/modules/kdeconnect/devices/93ae7c11a3901af9/contacts
/modules/kdeconnect/devices/93ae7c11a3901af9/findmyphone
/modules/kdeconnect/devices/93ae7c11a3901af9/findthisdevice
/modules/kdeconnect/devices/93ae7c11a3901af9/mprisremote
/modules/kdeconnect/devices/93ae7c11a3901af9/photo
/modules/kdeconnect/devices/93ae7c11a3901af9/ping
/modules/kdeconnect/devices/93ae7c11a3901af9/remotecontrol
/modules/kdeconnect/devices/93ae7c11a3901af9/remotekeyboard
/modules/kdeconnect/devices/93ae7c11a3901af9/sftp
/modules/kdeconnect/devices/93ae7c11a3901af9/share
/modules/kdeconnect/devices/93ae7c11a3901af9/sms
/modules/kdeconnect/devices/93ae7c11a3901af9/telephony
/org
/org/kde
/org/kde/kdeconnect
/org/kde/kdeconnect/daemon
```
|
Sorry for the delay, can you also please provide |
Here is the output I get
|
Well, now I'm very confused - the expected method appears to be available, but does not appear to be callable from our code. Just to confirm, please try: If that works though, I'm not really sure what to try next short of setting up a full FreeBSD + KDE env here to test on, and I'm not likely to have the time for that in the near future. |
On Thursday, July 30, 2020 9:49:39 AM EDT Peter Fern wrote:
qdbus org.kde.kdeconnect /modules/kdeconnect devices false true
When I run that command I get the following:
[/u/h/vendion]─> qdbus org.kde.kdeconnect /modules/kdeconnect devices false
true
93ae7c11a3901af9
Question does kdeconnect-chrome-extension interact with the kdeconnect daemon
strictly through dbus calls or does in interact with the daemon directly for
certain things?
|
Strictly through DBUS. The error you posted earlier:
says that we couldn't find the The only thing I can think is that there's a problem with the DBUS lib on FreeBSD, though I can't imagine how exactly - we appear to be connecting to the session bus okay, or it would error earlier. I can't think of a way to test beyond writing some Go DBUS code and running it on FreeBSD to probe where we're falling down, but that's going to be a little painful without a local system to test on. |
I've been working on getting kdeconnect up and running on FreeBSD 13.2; and managed to figure it out! For one ... there are some errors in dependencies (or at least they're outdated), that required manual patching to create a build based on the most recent code for kdeconnect-chrome-extension. Beyond that ... the error mentioned in this issue seems (at least for me) to be related to the setting of the There does appear to be some code that attempts to set it in godbus/dbus ... but the parsing breaks (some error about authentication is printed alongside a dbus-launch like output that it tries to parse), and it can't set those variables correctly. So ... if you have a FreeBSD build of the kdeconnect-chrome-extension binary, try setting those 2 env vars (based on dbus-launch output; I had to adapt mine to tcsh), and see if it works! On my end ... I'm able to discover, pair, and send links between devices just fine, with these set! Hope it helps! |
I'm seeing this same issue with Firefox 78.0.2 with FreeBSD 12.1. My phone and computer can see each other, but the Firefox extension just has an Orange exclamation mark and if I click on it there are no devices listed. I did compile the
kdeconnect-chrome-extension
binary and rankdeconnect-chrome-extension -install
making sure to select "Firefox" from the list.Originally posted by @vendion in #34 (comment)
The text was updated successfully, but these errors were encountered: