After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775052 - Add a quit command line option for polari
Add a quit command line option for polari
Status: RESOLVED OBSOLETE
Product: polari
Classification: Applications
Component: general
3.23.x
Other Linux
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-24 20:58 UTC by Atri
Modified: 2017-10-28 17:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Atri 2016-11-24 20:58:25 UTC
Since bug 770750 has been fixed, polari can now run in the background. It would be useful now to have a command line option "--quit" to quit a background instance of the app, for example by ssh-ing into your office desktop (and without accessing the full GUI).

From the developer's comment c#16 on bug 770750:
Something like

  gapplication action org.gnome.Polari quit

should already work (assuming access to the same DBus session bus), but I guess
we could expose that as command line option...
Comment 1 Atri 2016-11-29 09:43:42 UTC
Just to note here: the gapplication quit action does not really do what I had in mind. If I let a polari instance running on Machine A, then ssh into A from Machine B as the same user,  and do "gapplication action org.gnome.Polari quit" it does not (at least with polari 3.22) quit the running instance on A. As far as I can see, it does not really do anything in this instance. But, if I do the same procedure from A itself, then it works and polari quits. Would be nice to have a procedure to quit polari (esp. when it will be running in the background) by logging in as the same user from another machine.
Comment 2 Florian Müllner 2016-12-01 15:35:13 UTC
(In reply to Atri from comment #1)
> Would be nice to have a procedure to quit polari
> (esp. when it will be running in the background) by logging in as the same
> user from another machine.

Well, dbus-daemon is encouraging a "user" bus instead of the traditional "session" bus nowadays, so as long as you follow that recommendation, it will work across sessions. Even with a session bus, you should be able to make it work by setting the DBUS_SESSION_BUS_ADDRESS environment variable to the correct value (with the last bit - getting the correct value out of the regular session - being the tricky bit that'll require some custom script hackery).

What we are not going to do is adding an alternative IPC method in polari to make support for an uncommon use case ("communicating across login sessions with a discouraged DBus setup") slightly nicer.
Comment 3 Florian Müllner 2017-10-28 17:56:27 UTC
I'm moving newcomer bugs that haven't been picked up to gitlab. Please follow up at https://gitlab.gnome.org/GNOME/polari/issues/20.