kdeconnect-chrome-extension icon indicating copy to clipboard operation
kdeconnect-chrome-extension copied to clipboard

Tried building for macOS, Error executing binary

Open firefinchdev opened this issue 4 years ago • 12 comments

Describe the bug I build the binary from source for macOS, and got an error on executing the output binary.

To Reproduce Steps to reproduce the behavior:

  1. Build binary as instructed
  2. Perform ./kdeconnect-chrome-extension -install

Stacktrace

➜ ./kdeconnect-chrome-extension -install
panic: dbus: couldn't determine address of session bus

goroutine 1 [running]:
main.init.0()
	/Users/anirudh/go/src/kdeconnect-chrome-extension/main.go:121 +0x23e

Desktop (please complete the following information):

  • OS/distro/version: macOS 10.15.4
  • Browser/version chrome 81
  • kdeconnect-chrome-extension version [HEAD]

I was running the latest build of kde connect for macos before ./kdeconnect-chrome-extension -install

firefinchdev avatar May 06 '20 21:05 firefinchdev

@pdf Just in case you dont have macOS available with you, you can instruct me on how/what should I do. I can report back with logs etc.

firefinchdev avatar May 06 '20 21:05 firefinchdev

The error is coming from https://github.com/godbus/dbus which is the dbus library we're using. Looks like there has been some activity in more recent versions of the library around darwin support, so I've updated to the most recent version of the lib.

Try pulling the most recent change from here, running glide install again, and then rebuilding, though I'm not certain whether that library is meant to be functional currently for darwin/macOS.

pdf avatar May 06 '20 23:05 pdf

Same output as before

➜ ./kdeconnect-chrome-extension -install
panic: dbus: couldn't determine address of session bus

goroutine 1 [running]:
main.init.0()
	/Users/anirudh/go/src/kdeconnect-chrome-extension/main.go:121 +0x23e

firefinchdev avatar May 07 '20 16:05 firefinchdev

Seems like macOS support may not be fully functional in the upstream library. It's very difficult for me to work with them to implement it though, without access to a macOS system running DBUS.

pdf avatar May 07 '20 21:05 pdf

Can we discuss on Telegram etc? Telegram link: https://t.me/thirrdeye

firefinchdev avatar May 08 '20 12:05 firefinchdev

Best option is probably to file an issue upstream at go-dbus, and work with them to try and get the connection working - if the library works, this application will work. I unfortunately have no idea how DBUS is meant to function on macOS, or whether their code is actually meant to be functional currently, and sitting in the middle without any way to test personally is unlikely to yield results.

pdf avatar May 13 '20 10:05 pdf

Is there any news on this regarding using the Chrome extension on Mac OS?

orschiro avatar Dec 10 '20 15:12 orschiro

Without personal access to OSX, or the assistance of someone on OSX who has the skills to troubleshoot this themselves, my hands are tied.

pdf avatar Dec 10 '20 22:12 pdf

I will see if I can work on this. KDE Connect has progressed much more with the macOS version, compared to the time when the issue was raised.

firefinchdev avatar Dec 10 '20 22:12 firefinchdev

Thanks Anirudh!

Side question: Do you need KDE Connect for Mac to use this extension or can the extension be used standalone?

On Thu, 10 Dec 2020 at 23:24, Anirudh Gupta [email protected] wrote:

I will see if I can work on this. KDE Connect has progressed much more with the macOS version, compared to the time when the issue was raised.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pdf/kdeconnect-chrome-extension/issues/35#issuecomment-742838376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABJXQ3GTUDNPLA4T2G4YA3SUFDDJANCNFSM4M2ZNA4A .

orschiro avatar Dec 11 '20 05:12 orschiro

The extension requires KDE Connect to function.

pdf avatar Dec 11 '20 05:12 pdf

Which you get from here, right?

https://binary-factory.kde.org/view/MacOS/job/kdeconnect-kde_Nightly_macos/

On Fri, 11 Dec 2020 at 06:50, Peter Fern [email protected] wrote:

The extension requires KDE Connect to function.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pdf/kdeconnect-chrome-extension/issues/35#issuecomment-742986303, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABJXQ74GJ7XZ4MT2WVZK4TSUGXK7ANCNFSM4M2ZNA4A .

orschiro avatar Dec 11 '20 06:12 orschiro