Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add 3rd party application autostart in Gamescope ? #1058

Open
RastaTaz opened this issue Feb 1, 2025 · 5 comments
Open

How to add 3rd party application autostart in Gamescope ? #1058

RastaTaz opened this issue Feb 1, 2025 · 5 comments

Comments

@RastaTaz
Copy link

RastaTaz commented Feb 1, 2025

I'd like to add 3rd party application autostart when Gamescope session loads on system startup.

I've tried things that didn't work but I also don't want to interfere too much with ChimeraOS system to avoid rollbacks or issues when performing updates...

In my case, I just want to start a barrier or synergy (client or server) in order share keyboard and mouse between my ChimeraOS system and another computer on same network.

=> Does anyone knows the "good method" for doing such a thing that won't mess-up the system ?

@NeroReflex
Copy link
Contributor

There's no easy way to do what you want if the app is graphical, but if it doesn't have a gui you can use systemd --user

@RastaTaz
Copy link
Author

RastaTaz commented Feb 1, 2025

Hi @NeroReflex,
Thanks for answering.

Unfortunately, I think those apps have GUI and systray icons.
Although I don't need those GUI neither their systray as configuration can be done via config file and diabling systray may also be possible via command options.

I don't think systemd will "do the trick" as apps need to have a running X server and a display to attach to, so even launching the app as "gamer" user via systemd shuold fail: anyway I should give it a try and report any success/failure (maybe introduce a delay to allow for session to load before executing the app).

NOTE: I also tried to play with ".xsession" files but I think they're also too early in window manager start-up for those kind of apps...

@NeroReflex
Copy link
Contributor

To me this looks like an XY problem. Perhaps if you explain it better the end goal I might be able to help?

@RastaTaz
Copy link
Author

RastaTaz commented Feb 1, 2025

"XY problem"... ?
(what does it mean ?)

The goal is simple: start a "barrier" client on ChimeraOS computer.
Reason: I'm sick of using the hardware KVM switch to go from my Desktop computer to my Gaming (= ChimeraOS) computer for just one click or adjusting the volume.

Barrier allows to have keyboard and mouse from another computer on the same network to be used on the computer(s) running the client software.
It's kind of a "network KVM" that send inputs from one computer to clients regardless of OS. It even copy clipboard content (only text) from one system to another: you just have to go to the screen of clients computers as if you had a multiple screen display on one computer, but you're actually switching from one computer to another just by going through the border of your screen !

See https://github.com/debauchee/barrier for more details about it.

It's working quite fine when using the Chimera Gnome desktop session: can't remenber if I installed it through pacman or flatpack - but is't available for most distributions in default repositories and other OSes as well.

As it is simulating keyboard and mouse inputs on clients systems, it need to be started inside a X session to have a "recipient" to send those inputs.

@RastaTaz
Copy link
Author

RastaTaz commented Feb 1, 2025

Plus I hope this may also be a workaround for #868 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants