You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.7 KiB
34 lines
1.7 KiB
#!/usr/bin/env ./browser/execdesktop |
|
# |
|
# This file is a self-modifying .desktop file that can be run from the shell. |
|
# It preserves arguments and environment for the start-i2pd-browser script. |
|
# |
|
# Run './start-i2pd-browser.desktop --help' to display the full set of options. |
|
# |
|
# When invoked from the shell, this file must always be in an I2Pd Browser root |
|
# directory. When run from the file manager or desktop GUI, it is relocatable. |
|
# |
|
# After first invocation, it will update itself with the absolute path to the |
|
# current I2Pd Browser location, to support relocation of this .desktop file for |
|
# GUI invocation. You can also add the I2Pd Browser to your desktop's application |
|
# menu by running './start-i2pd-browser.desktop --register-app' |
|
# |
|
# If you use --register-app, and then relocate your I2Pd Browser directory, the |
|
# I2Pd Browser will no longer launch from your desktop's app launcher/dock. However, |
|
# if you re-run --register-app from inside that new directory, the script will |
|
# correct the absolute paths and re-register itself. |
|
# |
|
# This file will also still function if the path changes when I2Pd Browser is |
|
# used as a portable app, so long as it is run directly from that new directory, |
|
# either via the shell or via the file manager. |
|
|
|
[Desktop Entry] |
|
Type=Application |
|
Name=I2Pd Browser Setup |
|
GenericName=I2Pd Browser |
|
Comment=I2Pd Browser for surfing I2P sites |
|
Categories=Network;WebBrowser;Security; |
|
Exec=sh -c '"$(dirname "$*")"/browser/start-i2pd-browser --detach || ([ ! -x "$(dirname "$*")"/browser/start-i2pd-browser ] && "$(dirname "$*")"/start-i2pd-browser --detach)' dummy %k |
|
X-I2PdBrowser-ExecShell=./browser/start-i2pd-browser --detach |
|
Icon=web-browser |
|
StartupWMClass=I2Pd Browser
|
|
|