Set up opener. Support multiple hosts.
Enable with `systemctl --user enable --now opener@myhost`
This commit is contained in:
parent
fe11201cdb
commit
e176c27955
3 changed files with 22 additions and 0 deletions
.config/systemd/user
10
.config/systemd/user/opener@.service
Normal file
10
.config/systemd/user/opener@.service
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue