0

I've installed Tor Browser and I can run it buy the command:

./start-tor-browser.desktop 

This command works as long as the Tor icon(the globe icon) is in : /home/user/tor-browser_de/ and I am also there in ~/tor-browser_de.

When I want to set the shortcut Super+T, I use the command ./start-tor-browser.desktop, but it does not work. I copied the Tor icon to /home/user, but the problem still persists. How can I fix this problem?

4 Answers4

1

The command needs the full path. I've tried it with a bash-script for now and ./Path/To/File/Script.sh does not work. But bash /Path/To/File/Script.sh does.

In: Running a .desktop file in the terminal i found it should be deskopen, so the command for your shortcut should be:

deskopen /home/user/tor-browser_de/start-tor-browser.desktop

I hope that helps!

  • +1, but unfortunately the command does not work(it gives the error command not found), I am trying to solve it by the link that you've attached. –  Jan 11 '19 at 12:28
  • 1
    @Coditoergosum unrelated to this post: please don't suggest edits where the only change is gparted->GParted. – guntbert Jan 11 '19 at 22:46
  • @ guntbert thanks for comment, I'll try to improve my edits. But I don't understand whats wrong with correcting GParted? You have rejected one of my posts in which I had corrected GParted 5 times. I see edits in which only one letter is capitalizad. –  Jan 12 '19 at 03:09
  • 1
    @Coditoergosum opinions about what is a valuable edit differ of course. In my opinion case alone isn't worth the effort. I got the feeling that you were starting to search for all occurrences of gparted... – guntbert Jan 13 '19 at 11:41
0

I figured it out, thanks to the link attached by @Patient32Bit . There is an answer that says:

The answer should be

xdg-open program_name.desktop

But due to a bug this no longer works.

But the answer goes to 2010, and it seems that the bug is fixed. I set the shortcut by:

xdg-open start-tor-browser.desktop
0

Most correct way is to edit .desktop file. Open it with text editor, and change path to tor to correct one. Then everything should work fine, including keyboard shortcut.

As I remember in tor bundle is relative path, so you can unpack it and run. Fix it.

LeonidMew
  • 2,734
  • 1
  • 21
  • 38
0

with

./start-tor-browser.desktop --register-app

command you can create a shortcut to applications and you can run tor in applications