Guest User

[DEFAULT]start-tor-browser.desktop

a guest
Oct 30th, 2015
135
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env ./Browser/execdesktop
  2. #
  3. # This file is a self-modifying .desktop file that can be run from the shell.
  4. # It preserves arguments and environment for the start-tor-browser script.
  5. #
  6. # Run './start-tor-browser.desktop --help' to display the full set of options.
  7. #
  8. # When invoked from the shell, this file must always be in a Tor Browser root
  9. # directory. When run from the file manager or desktop GUI, it is relocatable.
  10. #
  11. # After first invocation, it will update itself with the absolute path to the
  12. # current TBB location, to support relocation of this .desktop file for GUI
  13. # invocation. You can also add Tor Browser to your desktop's application menu
  14. # by running './start-tor-browser.desktop --register-app'
  15. #
  16. # If you use --register-app, and then relocate your TBB directory, Tor Browser
  17. # will no longer launch from your desktop's app launcher/dock. However, if you
  18. # re-run --register-app from inside that new directory, the script
  19. # will correct the absolute paths and re-register itself.
  20. #
  21. # This file will also still function if the path changes when TBB is used as a
  22. # portable app, so long as it is run directly from that new directory, either
  23. # via the shell or via the file manager.
  24.  
  25. [Desktop Entry]
  26. Type=Application
  27. Name=Tor Browser Setup
  28. GenericName=Web Browser
  29. Comment=Tor Browser is +1 for privacy and -1 for mass surveillance
  30. Categories=Network;WebBrowser;Security;
  31. Exec=sh -c '"$(dirname "$*")"/Browser/start-tor-browser --detach || ([ ! -x "$(dirname "$*")"/Browser/start-tor-browser ] && "$(dirname "$*")"/start-tor-browser --detach)' dummy %k
  32. X-TorBrowser-ExecShell=./Browser/start-tor-browser --detach
  33. Icon=web-browser
  34. StartupWMClass=Tor Browser
RAW Paste Data