Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I use Opera and have a setup with two monitors. If I want to open a new URL opera -newwindow URL. The outcome differs, if I execute this command in a program on the same screen where Opera is, or on the other.

On the same screen everything is fine. I get the message opera: Activated running instance and the new window with the URL is opened.

On the other screen, I get a dialog with the following message: It appears another opera instance is using the same configuration directory because its lock file is active: /home/(my name)/.opera/lock and the URL is not shown.

That's not only from console, also if I click a link in E-Mail or so. How can I fix this?

Window-manager is awesome, if it does make a difference.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Opera stores it's profiles in ~/.opera ---

You could be able to run opera in a terminal or create a script by disabling the file lock - it's not really a biggie since we'll be disabling the mail database.

mv /home/username/.opera/lock ../; opera -pd /home/username/.opera/ -newwindow -nomail; mv ~/lock /home/username/.opera 

(which handles moving the lock file back again)

Hope this helps!

share|improve this answer
    
Thanks alot. This works with minor modifications. I added -nosession to the opera-commandline (because otherwise it asked) and dropped -newwindow, as otherwise it opened an empty window first. –  Mnementh Nov 25 '11 at 12:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.