Set up opener. Support multiple hosts.

Enable with `systemctl --user enable --now opener@myhost`
This commit is contained in:
Daniel Lundin 2024-03-12 15:44:19 +01:00
parent fe11201cdb
commit e176c27955
3 changed files with 22 additions and 0 deletions
.config/systemd/user

View file

@ -0,0 +1,10 @@
[Unit]
Description=Open URL in your local web browser from the SSH-connected remote environment.
[Service]
Restart=always
Environment=OPENER_CONF=%t/opener.%i.conf
ExecStart=/bin/sh -c 'echo "address: %t/opener.%i.sock" > $OPENER_CONF && exec %h/bin/opener --config $OPENER_CONF'
[Install]
WantedBy=graphical-session.target