I wanted to set keyboard shortcut for tor browser.
So i need a command which opens tor browser.
I installed .tar.gz file of tor browser,which installed in my home directory:
/home/sina/tor-browser-linux
So the file which i should set keyboard shortcut is this directory:
/home/sina/tor-browser-linux/tor-browser_en-US/Tor\ Browser
I wanted to open tor browser via terminal in these way:
sina@msi:~$ ./home/sina/tor-browser-linux/tor-browser_en-US/Tor\ Browser
bash: ./home/sina/tor-browser-linux...: No such file or directory
I tried to solve it by reading this link(like i did it for telegram before):
I tried to do this for tor(instead of telegram):
sina@msi:~$ nano ~/.profile
I added this to the last line of .profile
:
export PATH="/home/sina/tor-browser-linux/tor-browser_en-US/start-tor-browser.desktop"
It didn't work!
sina@msi:~$ sudo ln -s /home/sina/tor-browser-linux/tor-browser_en-US/start-tor-browser.desktop /usr/local/bin
sina@msi:~$ sudo ln -s /home/sina/tor-browser-linux/tor-browser_en-US/start-tor-browser.desktop /usr/share/applications
sina@msi:~$ cp /usr/share/applications/start-tor-browser.desktop ~/.config/autostart
I tried this too:
sina@msi:~$ alias tor='/home/sina/tor-browser-linux/tor-browser_en-US/start-tor-browser.desktop'
sina@msi:~$ tor
/usr/bin/env: ‘./Browser/execdesktop’: No such file or directory
When i cd to the tor browser's directory and run this command:
sina@msi:~/tor-browser-linux/tor-browser_en-US$ ./start-tor-browser.desktop
Tor browser opens and works...but when i run this:
sina@msi:~$ ./tor-browser-linux/tor-browser_en-US/start-tor-browser.desktop
/usr/bin/env: ‘./Browser/execdesktop’: No such file or directory
I have start-tor-browser.desktop in my home directory,and i can open it with thunar,but not with terminal:
sina@msi:~$ ./start-tor-browser.desktop
/usr/bin/env: ‘./Browser/execdesktop’: No such file or directory
- Is there any command to open tor browser via terminal?
/home/sina/tor-browser-linux/tor-browser_en-US/Tor Browser
...and the file name is Tor Browser/home/sina/tor-browser-linux/tor-browser_en-US/Browser/start-tor-browser
. Unless you changed the directory structure or moved files around this should work, assuming you gave the correct path in your question… Moving the.desktop
file will certainly not work, as it uses a relative path – and please don't doexport PATH=/some/path
in your.profile
unless you know very well what you do.