LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03:25 PM   #1
PeteRay
LQ Newbie
 
Registered: Jul 2009
Location: Montreal
Distribution: Linux Mint
Posts: 27

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, 08:02 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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, 09:59 AM   #3
PeteRay
LQ Newbie
 
Registered: Jul 2009
Location: Montreal
Distribution: Linux Mint
Posts: 27

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, 03:56 PM   #4
PeteRay
LQ Newbie
 
Registered: Jul 2009
Location: Montreal
Distribution: Linux Mint
Posts: 27

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:33 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