Error message trying to communicate with KStars on macOS

Robert Lancaster rlancaste at gmail.com
Thu Oct 10 20:35:19 BST 2024


Hi Paul,

While I am not an expert on dbus, when I was working on porting KStars to
Mac and packaging everything, I did have to run some dbus tests.  I did
save the commands that I ran to test it.  Here is the command I was testing
with ages ago and i can confirm that it still works since i just tried it:

/Applications/kstars.app/Contents/MacOS/dbus-send --dest=org.kde.kstars
--print-reply /KStars org.kde.kstars.zoomIn

As you can see, my command did not include --system either.  Was it
supposed to include a --system for some reason?

Thanks,

Rob



On Wed, Oct 9, 2024 at 5:35 PM <hans at lambermont.dyndns.org> wrote:

> Hi Paul,
>
> While I do not have a Mac,
>
> Paul Rodman wrote on 20241009:
> > I'm trying to communicate with KStars on macOS using the dbus-send app
> embedded in the macOS KStars application bundle. When I try and send a
> command using a terminal shell command:
> >
> >     /Applications/kstars.app/Contents/MacOS/dbus-send --system
> --print-reply --dest=org.kde.kstars /KStars org.kde.kstars.setTracking
> boolean:true
>
> Try without the --system as when I add that it does not work for me either
> :
>
> dbus-send --system --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.lookTowards string:"M 51"
> Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.kstars
> was not provided by any .service files
>
> while without it it works :
>
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.lookTowards string:"M 51"
> method return time=1728509575.541906 sender=:1.717 -> destination=:1.721
> serial=43 reply_serial=2
>
> Though all this might still be unrelated to the error message you get.
>
> -- Hans
>
> > I get this message:
> >
> >     Failed to open connection to "system" message bus: Socket name too
> long
> >
> > What am I doing wrong? How can I determine the "socket name" to figure
> out why it might be too long?
> >
> > Any help appreciated.
> >
> > Paul
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20241010/da2657e1/attachment.htm>


More information about the Kstars-devel mailing list