I have a from my perspective simple problem.
It is not really PureOS specific (I would say this should work equal on all Debian based distros with Gnome desktop). I did some research but I was not able to find out how to manage some local browser shortcuts.
–> A file which opens Tor (or your default browser) and opens an URL directly.
Why is this necessary?:
If someone has better idea feel free to share it! I learned that the Tor Browser should be used like it is and it should not be modified (do not maximize it, do not add any addons, etc.) as this might allow to identify you because of specific settings. So I assume this would be the same with bookmarks.
So my idea was to handle them locally as files/links/shortcuts on my machine.
E.g. on an Android phone you can navigate to a website using Orfox and tip+hold the bar with the URL and choose “Add to Home Screen”. Than you have a shortcut on your home screen which directly opens Orfox and the URL in this link.
All I want is the same under PureOS.
I already tried to prepare a .desktop file which should do this but up to now I was not successful. :-/
What I tried …
A desktop file:
[Desktop Entry]
Encoding=UTF-8
Name=Purism Forum
Type=Application
Exec=xdg-open https://forums.puri.sm
Icon=text-html
MimeType=text/html
and the default xdg browser can be change with:
xdg-settings set default-web-browser Tor_Browser.desktop
While the Tor_Browser.desktop file is the one which I normally use to start Tor.
Eventually the start command of Tor in this desktop file has to be modified to make this working (to let it accept a URL and open it).
Currently it is:
Exec=sh -c '"<path to_tor_browser_bundle>/Browser/start-tor-browser" --detach || ([ ! -x "<path to_tor_browser_bundle>/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k
X-TorBrowser-ExecShell=./Browser/start-tor-browser --detach
Eventually it is also possible to solve this with a .desktop file of “Type=Link”.
Or one might have a complete different solution or hint for me!?
Thanks in advance.