Opened 6 years ago

Closed 6 years ago

#9091 closed defect (fixed)

Ubuntu doesn't let you run Tor Browser by clicking on it

Reported by: Caius Owned by: mttp
Priority: Medium Milestone:
Component: Applications/Tor bundles/installation Version:
Severity: Keywords:
Cc: mikeperry, matthew.a.pagan@…, mcs, brade Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

I just downloaded the Tor Browser Bundle for Linux. I'm running Ubuntu 13.04.

When I run "sh start.tor.browser" from the terminal, Vidalia launches just fine and says I'm connected to Tor, but no browser launches.

If I try just opening Firefox, check.torproject.org tells me I'm not running Tor. What's going wrong?

Child Tickets

Change History (15)

comment:1 Changed 6 years ago by mttp

Component: VidaliaTor bundles/installation
Owner: changed from chiiph to erinn

comment:2 Changed 6 years ago by mttp

Status: newneeds_review

This issue happens on Ubuntu and Ubuntu-Gnome but not Xubuntu or Kubuntu. Ubuntu has these *.desktop files that create 'launchers' for applications. An application needs a launcher for it to be the default application for a filetype. Bash doesn't have one. That's why you can't run shell scripts in Ubuntu from the desktop.

One workaround is to add a bash launcher in the ~/.local/share/applications directory. Call it 'bash.desktop'.

Basically it should look something like this:

[Desktop Entry]
Version=1.0
Type=Application
Name=Bash
Icon=bash
Exec=/bin/bash %U
Terminal=false
Path=/bin/bash

After you've made the file, run

chmod +x bash.desktop

to make the file executable.

There is also an entirely non-command line solution that involves installing another program. Get the program Main Menu from the Ubuntu Software Center. It's name on the command line is 'alacarte'. When this program is open click the 'New Item' button and a window will appear. Enter these options:

Type: Application
Name: Bash
Command: /bin/bash %U

Then hit OK. Now you can open shell scripts (like start-tor-browser) by clicking on them.

Alternatively, if you are using the 3.* Tor Browser Bundle series, you can just run

sh ./start-tor-browser

and be done with it.

comment:3 Changed 6 years ago by mttp

I have submitted a bug report to the Unity development team regarding this issue: https://bugs.launchpad.net/ayatana-design/+bug/1198598

comment:4 Changed 6 years ago by arma

Summary: Tor Browser not launchingUbuntu doesn't let you run Tor Browser by clicking on it

comment:5 Changed 6 years ago by arma

Alas, I don't think we should be instructing Ubuntu users on how to totally disable Ubuntu's "I won't run a script if you click-click it" feature. It's there to protect them. Instead, we should be teaching them how to make an exception just for TBB. If there's an easy way to do that, that is.

comment:6 Changed 6 years ago by arma

Cc: mikeperry added

comment:7 Changed 6 years ago by mttp

Cc: matthew.a.pagan@… added

comment:8 in reply to:  5 Changed 6 years ago by mttp

Replying to arma:

Instead, we should be teaching them how to make an exception just for TBB.

Another (somewhat gruesome?) way to get around this would be to rewrite the whole start-tor-browser script in C (but not python it appears, as *.py files, like *.sh files, open in gedit when they're double-clicked).

comment:9 Changed 6 years ago by mcs

Cc: mcs brade added

comment:10 Changed 6 years ago by mikeperry

Actually, see also #9173. We may want to drop RelativeLink entirely and just have Firefox execute directly on all platforms.

mcs/brade: You probably want to keep that in mind for your bundle reorganization+updater work. If you think it is also worthwhile to remove this wrapper script to make the updater simpler, you can do that as part of your updater contract item.

comment:11 in reply to:  2 ; Changed 6 years ago by mttp

Alternatively, if you are using the 3.* Tor Browser Bundle series, you can just run

sh ./start-tor-browser

and be done with it.

Are there any objections to me closing this ticket if I add this information to our FAQ?

comment:12 in reply to:  11 Changed 6 years ago by arma

Replying to mttp:

Alternatively, if you are using the 3.* Tor Browser Bundle series, you can just run

sh ./start-tor-browser

and be done with it.

Are there any objections to me closing this ticket if I add this information to our FAQ?

Sounds good to me.

comment:13 Changed 6 years ago by mttp

https://www.torproject.org/docs/faq.html.en#Ubuntu is up. Feel free to reopen this ticket if you think this FAQ entry is inadequate.

comment:14 Changed 6 years ago by mttp

Owner: changed from erinn to mttp
Status: needs_reviewassigned

comment:15 Changed 6 years ago by mttp

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.