Linux - NewbieThis 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
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.
I installed opera10 and I can start it from a shell script from the opera folder but when i try to make a desktop shortcut it does not work.
Either from xfce or by right clicking and choosing to send it to the desktop as a shortcut.
I did not install opera system wide, only under one user. Do I need to set some kind of path or link or something?
Linux uses "desktop files" that contain the name of the program in different languages, the path to the icon, and the command to run, instead of links, to put program icons on the desktop.
I did not install opera system wide, only under one user. Do I need to set some kind of path or link or something?
If you installed it only for one user (as that user), then it should not be made available to other users, so you are either trying to do the "wrong thing" or I have misunderstood your Q.
If you'd like opera to be available to all users, then install it as root, by using your package manager. Paths and links "will be taken care of"
Otherwise, try calling opera from a script. This is called "Wrapping it up". It's ugly, but often works.
Script startopera:
Code:
#!/bin/bash
cd /home/M$ISBS/wherever/opera
opera
Then make that script executable
Code:
chmod +x /path/to/startopera
Then call that script from your "desktop shortcut". Be sure to give the full path to the /home/M$ISBS/whatever/startopera script or it will probably fail.
[KDE 3.x handles this effortlessly. Sometimes linux takes three steps forwards, then one step back. Sigh.]
I would like an icon on the desktop to click on, instead of opening up the opera folder and clicking on the icon there.
When I drag the icon to the desktop, it shows up but does nothing when I double click on it. It says that its a link to a shell script.
Edit:
You could find out what the errors are by running the script in a terminal:
Code:
cd /home/M$ISBS/Desktop
./nameoflinktoopera
/Edit
I did that and it says:
The Opera binary is not located at "usr/lib/opera/opera".
Please modify the wrapper script at "./opera".
It looks like the link is pointing to /usr/lib/opera/opera but the executable is not located there, its in the folder I downloaded it to.
What is a wrapper script?
Did you try right clicking the desktop and selecting create launcher.
Put Opera where it says name.
The command should be opera.
Yes I did that a dozen times and it works with other programs, but not with opera.
It has something to do with opera not being installed globally but I dont know how to fix it. It looks like the link is pointing to the wrong location, Something like /usr/lib/opera Opera is actually located at /home/*****/download/opera
When I open up a console and type " ./opera " Opera starts up, (as long as I am in that directory) but in the shortcut icon It does not work.
where it says command put the path /home/*****/download/opera.
Thats one of the first things I did and nothing happens when I click on the icon, It doesnt make sense. The only thing different is that I have to use ./opera in the console instead of just opera in the command path.
I tried ./opera in the command path of the icon and that does not work.
When I use ./opera in the terminal it works fine.
is /home/*****/download/opera a directory?
you may need to put /home/*****/download/opera/opera.
./ is only needed when your in the directory the executable is in.
When I do that, the terminal opens with nothing displayed and it just sits there.
I think I might have to uninstall opera, then reinstall it and see if that changes anything.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.