LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-29-2003, 01:29 PM   #1
wayback
LQ Newbie
 
Registered: Dec 2003
Location: WA
Distribution: slackware 9.1
Posts: 18

Rep: Reputation: 0
how to change app for desktop config file?


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.
 
Old 12-29-2003, 02:05 PM   #2
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
right-click on the icon - properties?
 
Old 12-29-2003, 02:09 PM   #3
wayback
LQ Newbie
 
Registered: Dec 2003
Location: WA
Distribution: slackware 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
Tried right-click for Properties but that doesn't provide a way to change to app.
 
Old 12-29-2003, 04:19 PM   #4
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
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.
 
Old 12-29-2003, 07:30 PM   #5
wayback
LQ Newbie
 
Registered: Dec 2003
Location: WA
Distribution: slackware 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
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?
 
Old 12-29-2003, 08:17 PM   #6
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
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.

[Desktop Entry]
Exec=/home/user1/MozillaFirebird/MozillaFirebird /home/user1/doc1.html
Icon=/home/user1/MozillaFirebird/icons/mozicon50.xpm
MiniIcon=/home/user1/MozillaFirebird/icons/mozicon16.xpm
Name=Firebird 0.7
Name[en_US]=Firebird 0.7
Terminal=0
Type=Application

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.
 
Old 12-30-2003, 01:37 AM   #7
wayback
LQ Newbie
 
Registered: Dec 2003
Location: WA
Distribution: slackware 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run app on a particular virtual desktop 3saul Linux - Software 2 11-22-2005 12:56 AM
open app in different desktop display Furlinastis Slackware 6 10-01-2005 10:03 PM
mount.app config two_black_dogs DamnSmallLinux 0 01-06-2005 08:43 PM
I want change mail header info, which config file i should modify? exper Linux - Software 2 12-05-2003 06:46 AM
change the xf86 config file ronss Red Hat 4 09-16-2003 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration