Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Select the following text and paste it into your terminal by pressing Shift+Ins:
Opera Preferences version 2.0
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding
[Settings]
Default File Handler=gnome-open ,1
Default Directory Handler=gnome-open ,1
Then I get this:
Code:
lapiii@lapiii-desktop:~$ Opera Preferences version 2.0
Opera: command not found
lapiii@lapiii-desktop:~$ ; Do not edit this file while Opera is running
bash: syntax error near unexpected token `;'
lapiii@lapiii-desktop:~$ ; This file is stored in UTF-8 encoding
bash: syntax error near unexpected token `;'
lapiii@lapiii-desktop:~$ [Settings]
[Settings]: command not found
lapiii@lapiii-desktop:~$ Default File Handler=gnome-open ,1
Default: command not found
lapiii@lapiii-desktop:~$ Default Directory Handler=gnome-open ,1
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Code:
gksudo gedit ~/.opera/filehandler.ini
is what I would do to try and open it. I honestly don't know what the code is you posted. Once the file opens follow the instructions and paste in the text you have tried pasting into the terminal.
Opera Preferences version 2.0
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding
[Settings]
Default File Handler=gnome-open ,1
The only difference between it and the text on the documentation for entering into a terminal is:
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Advice Pro
The contents of that file are:
Yep
Quote:
Originally Posted by Advice Pro
The only difference between it and the text on the documentation for entering into a terminal is:
So add it
Quote:
Originally Posted by Advice Pro
Ctrl+D only closes the terminal!
Yep
I'm sorry but I fail to see what the problem is now. If you have successfully added that line to the file, successfully saved the file, and closed the terminal you are most of the way there. Is there anything else your having difficulty with?
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by Advice Pro
I've added that line to the file and saved.
Excellent
Quote:
Originally Posted by Advice Pro
[*]How did you come up with adding that line to the file vs. the terminal as the document instructs?
If I can I use Gedit to edit files. I saw you failed at doing it with terminal so I used my brain, put 2 and 2 together and got Gedit I thought the nice thing to do would be to tell you how to do it that way and that would save you time, effort and frustration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.