You are not logged in.

#1 2024-04-27 07:28:43

Myersj281
Member
From: United States
Registered: 2017-07-03
Posts: 14

Run GUI app (as its own user) some time between boot and log in

I have Barrier installed to use the same mouse/keyboard with MacOS, Windows and Arch Linux. Unfortunately I have it set to run AFTER I log in and have to reconnect the USB keyboard to log in and then disconnect it again. That's not really ideal. I know that I could create a "barrier" user and run it at boot if it were a CLI app, but does this work with GUI apps? I'm open to just about any solution (GUI or CLI) as long as I can use it on all three systems. I appreciate any and all advice smile


Some details about my setup:
MacOS is running the Barrier server.
Arch Linux is a fresh install running Plasma 5 on X11 (Barrier doesn't support Wayland)

Last edited by Myersj281 (2024-04-27 07:34:36)

Offline

#2 2024-04-27 09:58:00

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,977

Re: Run GUI app (as its own user) some time between boot and log in


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2024-04-28 01:18:23

Myersj281
Member
From: United States
Registered: 2017-07-03
Posts: 14

Re: Run GUI app (as its own user) some time between boot and log in

Thanks for the reply Lone Wolf XD

I haven't tried it yet, but I took a quick glance at the link you sent and it looks like it might do the trick. It does talk specifically about the target being either default or user. Which target would be ideal for my use case? (I'm assuming that input-leap, barrier and synergy are nearly, if not 1 to1 compatible with stuff like this)

This is copied and slightly modified from the link you sent:


[Unit]
Description=Input Leap Client Daemon
After=network.target

[Service]
ExecStart=/usr/bin/input-leap --no-daemon server-name
Restart=always
RestartSec=3

[Install]
WantedBy=default.target

Mod Edit :
Please use the ins tag as little as possible, the bright yellow tends to hurt the eyes.  I replaced the ins tags with code tags.

Last edited by Lone_Wolf (2024-04-28 10:28:14)

Offline

#4 2024-04-28 10:40:05

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,977

Re: Run GUI app (as its own user) some time between boot and log in

you will have to replace server-name with the real server name .

At what stage of boot do you want this to function ?

default target is typically multi-user.target or graphical.target so before you login .

Do you need e keyboard/mouse earlier (like for inputting an encryption passphrase ) ?
Do all users of the system need this ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB