dotfiles/.config/systemd/user/opener@.service
Daniel Lundin e176c27955 Set up opener. Support multiple hosts.
Enable with `systemctl --user enable --now opener@myhost`
2024-03-12 16:07:01 +01:00

10 lines
326 B
Desktop File

[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