mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #347] How to launch client through systray #279
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#279
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jul 1, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/347
Use case:
a) Machine plugged in to docking station - if barrier client not started, start it
b) Machine unplugged from docking station - if barrier client started, kill it
Currently this is possible, however without monitoring from GUI. GUI client runs completely separately and is unaware of a second instance of barrier client. This leads to two problems:
Killing barrier client, the child proccess of barrier GUI, results in barrier GUI restarting the process.
Spawning a new barrier client does not get registered with the barrier GUI, which is unaware of this instance.
Ideally, the GUI would allow some way to emulate the user action of selecting start/stop service from the tray icon. Unix domain sockets? TCP sockets? DBUS? Something to that effect.
I am aware that automation can be achieved with the barrierc client alone, however the tray icon application cannot be presently made to work with this scenario.
If the devs specify which IPC method would be suitable for this task, if any, I might do a POC.
@shymega commented on GitHub (Aug 14, 2019):
With regards to a IPC method, I would, personally, go for something efficient and portable.
We could use Unix domain sockets for the *nix targets, including macOS. With Windows, there's a IPC method called 'Windows Sockets', which might be suitable.