LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-15-2010, 07:40 PM   #1
acraig
Member
 
Registered: Oct 2010
Distribution: Linux Mint 14 Nadia 32-bit, Pear Linux 6 32-bit
Posts: 112

Rep: Reputation: 6
Question Opera Launcher


I recently returned to Gnome from Xfce, and when I installed Opera I did everything I did the first, second, and third time I installed Opera in Linux, but the launcher had to be manually tweaked to work. I've used Opera for years and this is the first time I've had this problem.

The command was changed from /usr/local/bin/opera %U to sudo /usr/local/bin/opera %U

It does not work without being prefaced by 'sudo'. That is not a big issue with me, although I know from past experience that I shouldn't have had to do that. I am webmaster and web page designer and use multiple browser to view web pages before they are placed online. I recently realized that when I right click on a web page and choose Opera to open the file, nothing happens. I have to go to "open with other application", choose "use a custom command" and type in "sudo /usr/local/bin/opera" in order to open the page in Opera. I have to do it every single time!

It is becoming very annoying, as I build and tweak a lot of pages. Is there a way to fix this, so I never have to use special, manual commands and sudo again?

Last edited by acraig; 11-15-2010 at 07:51 PM.
 
Old 11-15-2010, 08:08 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Of course running Opera as root is a security problem but the fact that it works as root says that all of the files are in the right place. The problem appears to be related to permissions.

Check the permissions on the opera binary. Make sure that it is executable by everyone.

Run Opera from a terminal and watch the error messages to get a better idea of the problem.

Last edited by stress_junkie; 11-16-2010 at 07:37 AM.
 
Old 11-16-2010, 04:01 PM   #3
acraig
Member
 
Registered: Oct 2010
Distribution: Linux Mint 14 Nadia 32-bit, Pear Linux 6 32-bit
Posts: 112

Original Poster
Rep: Reputation: 6
Question

I don't know where to find the "binary permissions", but I did locate the hidden directory in home. It was owned by root. I logged in as root and changed the permissions, but I still can not open a web page in Opera by right clicking. And when I tried to open Opera in a terminal all I got was an open terminal.

Also, I just realized something else pretty significant that I hadn't realized before, I can't start Opera from the Applications drop down menu! I had never tried before, because I prefer and use launchers exclusively for daily use programs.

Would I be better off just uninstalling and reinstalling Opera, even though I did what I had always done to make Opera available to everyone when I installed last time? Is it possible that could work or is something else going on?
 
Old 11-16-2010, 04:51 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Quote:
Originally Posted by acraig View Post
Would I be better off just uninstalling and reinstalling Opera, even though I did what I had always done to make Opera available to everyone when I installed last time? Is it possible that could work or is something else going on?
It's a tempting idea. I suppose it depends on what you always do to make an application available to everyone. It seems likely that if you followed the same steps then you would achieve the same results.

Since Opera works for root then we should be able to make it work for a non-privileged user account.

Quote:
Originally Posted by acraig View Post
I don't know where to find the "binary permissions", but I did locate the hidden directory in home. It was owned by root.
If you could see that the .opera file was owned by root then you probably also saw the permission settings. It depends on how you found the .opera directory. If it was in some GUI file manager then it may not have shown you the permissions.

Quote:
Originally Posted by acraig View Post
Also, I just realized something else pretty significant that I hadn't realized before, I can't start Opera from the Applications drop down menu! I had never tried before, because I prefer and use launchers exclusively for daily use programs.
That is to be expected since the desktop launcher would do the same thing as the application menu.

Quote:
Originally Posted by acraig View Post
I logged in as root and changed the permissions, but I still can not open a web page in Opera by right clicking. And when I tried to open Opera in a terminal all I got was an open terminal.
My ignorance of Dream Linux is getting in my way here. I don't know what terminal emulator software is installed by default. I had expected that when you opened the terminal window you would then type opera at the prompt and press the enter key. Then you would see a bunch of messages that are generated by Opera. Some of those messages could help us find the problem.

Now that we know that the .opera directory is owned by root our first task should be to delete that directory. You may need to become root to do that or you may be able to use the sudo utility to temporarily gain root access for one command. Here is an example of how to use sudo to delete the .opera directory in your home directory.
Code:
cd
sudo rm -r .opera
Notice that I performed the cd command first just to be sure that we are in your home directory. Then the sudo command gains root privileges and executes the following command. The rm -r command will remove the entire .opera directory and its files.

That by itself could fix your problem. Give it a try and report the results.
 
Old 11-16-2010, 07:07 PM   #5
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,402

Rep: Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403
When you install Opera, it give you the option of installing it for all users or installing just for the installing user.

If you installed it as root or with sudo, is it possible a mouse click went wrong on that question?

You might try also posing this question on the Opera newsgroups at news.opera.com or in the Opera forums at opera.com.
 
Old 11-17-2010, 06:10 PM   #6
acraig
Member
 
Registered: Oct 2010
Distribution: Linux Mint 14 Nadia 32-bit, Pear Linux 6 32-bit
Posts: 112

Original Poster
Rep: Reputation: 6
Smile Thank you!!

Thank you for the advice, stress_junkie! I removed the .opera directory and reinstalled Opera, very carefully, system wide.

I think frankbell is correct as to how this happened. When I was reinstalling, I realized the set up would make such an accident easy to make. I probably nudged the down key just before I hit enter and ended up installing as root, even though it had appeared to be installed system wide.

After I reinstalled Opera, first thing I tried was right clicking on a web page and it opened right up. No problem. Everything now works as it should -- desktop launcher with sudo removed and the applications drop down menu.

I really appreciate the help. Thank you very much!
 
  


Reply

Tags
browser, launcher, opera


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Opera Desktop Team releases first Unix builds of Opera 10.5 LXer Syndicated Linux News 0 01-01-2010 09:11 AM
LXer: Opera Launches Final Version of Opera 10 Browser LXer Syndicated Linux News 0 09-02-2009 02:20 PM
installing 32bit opera after installed 64bit opera soa Linux - Software 1 08-13-2008 06:51 PM
Creating a launcher (could be java launcher) The_Messiah Linux - Newbie 12 04-06-2005 01:36 AM
gnome launcher/opera shortcut? BajaNick Linux - Software 0 08-17-2003 10:47 PM


All times are GMT -5. The time now is 12:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration