View Single Post
Posts: 52 | Thanked: 33 times | Joined on Oct 2011 @ Poland, Tricity
#11
It would probably work but It actually is a bad idea to overwrite files like that. Especially those in /usr/share/applications

There is a better and update insensitive way.
Step 1. Go to /home/user/.local/share/applications

Step 2. Create operamobile-labs-open.desktop:
Code:
[Desktop Entry]
Version=0.1
Encoding=UTF-8
Name=Opera-opener
Type=Application
Exec=/opt/operamobile-labs/operamobile %U
Icon=/usr/share/icons/hicolor/80x80/apps/operamobile-labs.png
Step 3. Open defaults.list (the one in /home/user/.local/share/applications) and at the end add:
Code:
x-maemo-urischeme/http=operamobile-labs-open.desktop
x-maemo-urischeme/ftp=operamobile-labs-open.desktop
x-maemo-urischeme/https=operamobile-labs-open.desktop
x-maemo-urischeme/file=operamobile-labs-open.desktop
x-maemo-highlight/http-url=operamobile-labs-open.desktop
x-maemo-highlight/ftp-url=operamobile-labs-open.desktop
text/html=operamobile-labs-open.desktop
Note that since you created a desktop file you created a link on your application screen. You can simply hide it in some folder.
 

The Following 7 Users Say Thank You to eccenux For This Useful Post: