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.
Using KDE, how do I change which application launches when a "desktop config" file/icon is double-clicked? Specifically, I want to change which browser is launched for a URL-type d.c. file. There must be a file somewhere that controls this, I just can't find it. (And, is it the same thing for Gnome?) TIA.
Right-click on the desktop icon and select "Open With...". Typically I open them using a text editor or something like KWrite.
Once you have the .desktop file open, look for the line that begins with "exec=". This is the path and executable name to the application that will be launched. Save the changes to the file, exit the editor, and try double-clicking on the icon.
Thanks for suggestion - tried that, but (a) there was no line "exec=" already there, (b) when I added one it had no effect (e.g.: "exec=/usr/bin/mozilla", but it still brings up Galeon as the browser). Do your desktop config url files contain such a line?
I suspect that what your are doing is simply creating a link to an actual HTML file on your desktop? And based on what you've said so far, you want to open some HTML files in one browser and some in a different browser? That's probably why you didn't see an "exec" line when you opened it up with a text editor. Those links aren't actually .desktop files, but actual links to real HTML files. If this is the case, then you are right, you wouldn't see an "exec" line. You would probably see the HTML source if you did this.
The only way that I can see to open some HTML docs in one browser and some in the other are to create what are called .desktop files, one for each doc you want to behave like this. So, for instance to open up /home/user1/doc1.html in Mozilla Firebird, you would create a file called doc1.desktop in a text editor and place the following code inside of it.
Some things to note...all the paths listed depend on where you've installed Firebird, obviously, as well as where the HTML document lives.
The Name and Name[en_US] fields are what are displayed under the icon on the desktop. The Icon and MiniIcon fields are what icon graphic is displayed on the desktop. Once you've got your Doc1.desktop file, copy it to your actual desktop. When you click it, it should open up Doc1.html inside of Firebird.
If there is an easier way to do this, perhaps someone else could suggest it.
No they're actual desktop config files (*.desktop), not links to html files, but they don't contain any "exec=" line. Also they're http urls, not to files on my machine, so I can't put in a line "exec=" that references another file on my machine. There must be a config file somewhere that determines what application gets invoked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.