Created
March 12, 2024 16:43
-
-
Save dln/9ec1f4e6a0e842359fcb2a9cf4ddf29c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host dln-dev | |
RemoteForward ${XDG_RUNTIME_DIR}/opener.sock ${XDG_RUNTIME_DIR}/opener.dln-dev.sock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment