LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-14-2004, 10:34 AM   #1
ashusharma
LQ Newbie
 
Registered: Dec 2003
Distribution: Redhat Linux 8.0
Posts: 17

Rep: Reputation: 0
Finding default browser and mail client


Hi,

Is there a way to find, programmatically or through a shell script, what the default browser and mail client are on KDE, GNOME, etc.?

Any help, links etc are appreciated.

Thanks in advance,
Ashutosh
 
Old 07-14-2004, 11:15 AM   #2
netmask
Member
 
Registered: Jul 2004
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103

Rep: Reputation: 16
Please refer to thread http://www.linuxquestions.org/questions/history/197623
 
Old 07-14-2004, 11:28 AM   #3
ashusharma
LQ Newbie
 
Registered: Dec 2003
Distribution: Redhat Linux 8.0
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks, but the methods suggested there and at the link within use the GUI to find/set the default browser. Can we do the same in a shell script or with a C-program?

Ashutosh
 
Old 07-14-2004, 12:40 PM   #4
BluePyre
Member
 
Registered: Mar 2004
Location: London
Distribution: Mandrake 10
Posts: 172

Rep: Reputation: 30
Shell script? If you're using KDE, its a matter of writing to ~/.kde/share/config/emaildefaults with your email client. For example, you can just have a script like so:

############ Begin default email client for KDE script #############
emailclient="kmail %t %s"
# Flags: %t - To %s - Subject %c - CC %B - body text

echo -e "Profile=Default\n\n[PROFILE_Default]\nEmailClient=$emailclient\nServerType=\nTerminalClient=false" > $HOME/.kde/share/config/emaildefaults
############ End Script ####################################

I'm not sure about Gnome, but i'm guessing it would be something similar.
 
Old 07-15-2004, 12:25 AM   #5
ashusharma
LQ Newbie
 
Registered: Dec 2003
Distribution: Redhat Linux 8.0
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks! And can I assume that the current default email client would haev written something similar here, to find out what the current default client is?
 
  


Reply



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
Details about default web Browser & default Email client sudhasmyle Linux - Software 4 06-15-2006 11:45 AM
Setting the default browser for Ximian Evolution mail client. sepulture Linux - Software 2 11-21-2005 10:03 PM
Setting default browser and e-mail kenhall4 Linux - Newbie 6 07-14-2005 05:39 PM
setting default mail browser and email client novacrasher Linux - General 9 01-12-2005 02:31 PM
Default browser & E-mail Client sudhasmyle General 1 11-26-2004 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 PM.

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