<div dir="ltr">Hi Paul,<div><br></div><div>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:</div><div><br></div><div>/Applications/<a href="http://kstars.app/Contents/MacOS/dbus-send">kstars.app/Contents/MacOS/dbus-send</a> --dest=org.kde.kstars --print-reply /KStars org.kde.kstars.zoomIn<br></div><div><br></div><div>As you can see, my command did not include --system either. Was it supposed to include a --system for some reason?</div><div><br></div><div>Thanks,</div><div><br></div><div>Rob</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 9, 2024 at 5:35 PM <<a href="mailto:hans@lambermont.dyndns.org">hans@lambermont.dyndns.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi Paul,<br>
<br>
While I do not have a Mac,<br>
<br>
Paul Rodman wrote on 20241009:<br>
> 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:<br>
> <br>
> /Applications/<a href="http://kstars.app/Contents/MacOS/dbus-send" rel="noreferrer" target="_blank">kstars.app/Contents/MacOS/dbus-send</a> --system --print-reply --dest=org.kde.kstars /KStars org.kde.kstars.setTracking boolean:true<br>
<br>
Try without the --system as when I add that it does not work for me either :<br>
<br>
dbus-send --system --dest=org.kde.kstars --print-reply /KStars org.kde.kstars.lookTowards string:"M 51"<br>
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.kstars was not provided by any .service files<br>
<br>
while without it it works :<br>
<br>
dbus-send --dest=org.kde.kstars --print-reply /KStars org.kde.kstars.lookTowards string:"M 51"<br>
method return time=1728509575.541906 sender=:1.717 -> destination=:1.721 serial=43 reply_serial=2<br>
<br>
Though all this might still be unrelated to the error message you get.<br>
<br>
-- Hans<br>
<br>
> I get this message:<br>
> <br>
> Failed to open connection to "system" message bus: Socket name too long<br>
> <br>
> What am I doing wrong? How can I determine the "socket name" to figure out why it might be too long?<br>
> <br>
> Any help appreciated.<br>
> <br>
> Paul<br>
</blockquote></div>