LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 11-06-2013, 04:25 PM   #1
PeteRay
LQ Newbie
 
Registered: Jul 2009
Location: Montreal
Distribution: Debian
Posts: 24

Rep: Reputation: 0
Display default mail app


From a terminal command line, how do I display the default mail agent? I know how to set it, I want to know how to display it.

Thanks
Peter
 
Old 11-06-2013, 09:02 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,091

Rep: Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535Reputation: 1535
Do you mean to start the program or find out what the default mail application is?

The name of the program's executable binary should run it from the command line (For Debian's Icedove, for example, that's icedove, all lower case). If it's the latter, it would help to know what desktop environment you are using. Different desktops have different conventions for storing items such as file associations and the like.
 
Old 11-07-2013, 10:59 AM   #3
PeteRay
LQ Newbie
 
Registered: Jul 2009
Location: Montreal
Distribution: Debian
Posts: 24

Original Poster
Rep: Reputation: 0
Hi Frank,

Thanks for replying.

I'm running Debian 7 with Gnome classic or Xfce, and LinuxMint Olivia with Cinnamon. I don't need to run the mailer, what I need is a command that identifies the default mailer to a bash shell script. Thunderbird is the default on LinuxMint. I wasn't impressed so I switched to Evolution. Now both binaries are on the system, so $(which evolution) and $(which thunderbird) both return results. .thunderbird and .evolution directories both exist in my home directory, sop testing for one or the other won't work. Do you have a suggestion?

Peter
 
Old 11-09-2013, 04:56 PM   #4
PeteRay
LQ Newbie
 
Registered: Jul 2009
Location: Montreal
Distribution: Debian
Posts: 24

Original Poster
Rep: Reputation: 0
Found something. On a LinuxMint machine, under System Settings, I changed the default browser, exited, then ran "find ~ -mmin -1 -type f", which showed me the 2 files that had been modified in the past minute. ~/.local/share/applications/mimeapps.list was a hit, it shows several default apps including the mailer. I can run "grep mailto .local/share/applications/mimeapps.list" to display the default mailer, or "grep http .local/share/applications/mimeapps.list" for the default browser, etc. It works on the Debian box too. I'll use it until it breaks.

Peter
 
  


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
[SOLVED] Opera 10.0 mail search does not show sent mail (by default) neonsignal Linux - Software 2 11-23-2009 08:03 PM
How to set Opera Mail (M2) as Default Mail Program in Fedora 10 eoinjones Linux - Software 1 01-18-2009 12:50 PM
Default Drowser & Default E-mail Cli sudhasmyle Linux - Networking 1 11-20-2004 11:42 AM
Linux mail gateway + mail app damothedude Linux - Software 0 11-24-2003 09:41 AM
e-mail server. Want to use client app to retrieve mail bkeating Linux - Software 2 08-23-2003 08:44 PM


All times are GMT -5. The time now is 12:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration