LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-12-2016, 09:22 PM   #1
danjde
Member
 
Registered: Jun 2014
Posts: 36

Rep: Reputation: Disabled
Question LXDE and Simple Scan sending email from


Hi friends,
Using Ubuntu 14.04 and LXDE as Desktop Manager
I could not to send the scanned document to the email client (for example Thunderbird) from the useful function: file->E-mail.

I've try from another Desktop Manager and all works fine.
I checked in LXDE preferences and Thunderbird seem correctly set as default email application.

Anyone have found a similar situation and any idea? :-)
Or how is it possible to debug its behavior? I've try to run from console Simple Scan but no errors appear.

many many thanks!
 
Old 10-14-2016, 05:12 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Did you try launching in debug mode?
Code:
simple-scan -d
 
Old 10-14-2016, 06:43 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
FWIW, I happened to stumble across this page (refer 'Solution for 2') which described how /usr/share/applications/thunderbird.desktop contains
Code:
Exec=thunderbird %u
where %u is a URL reference to the file concerned which apparently might not be what Thunderbird is expecting. Changing this to
Code:
Exec=thunderbird  %f  %u
might be helpful when Thunderbird requires an absolute file path to work with. I don't know whether this will be the solution here, but it may be worth trying IMHO. AFAIU, you'll need to restart your desktop before any changes you make to the.desktop file take effect.
 
Old 10-20-2016, 11:50 AM   #4
danjde
Member
 
Registered: Jun 2014
Posts: 36

Original Poster
Rep: Reputation: Disabled
Thanks for your help @ferrari!

I can tell you that running simple-scan in debug mode, appear clear what it run: xdg-email --attach "path/to/name/file"
Running the same command via terminal, do not get any results.
Simply, seem that LXDE have not a preferred email app to run.
But looking into preferred-default-app, Thunderbird appears and seem correctly configured.
It's seem a Ubuntu/LXDE bug: https://bugs.launchpad.net/ubuntu/+s...s/+bug/1540399


Changing as you suggest Exec=thunderbird %u to Exec=thunderbird %f %u works great if you want to send by left-click mouse, but no by simple-scan.

I've open an issue on github xdg-utils-ng: https://github.com/matthewbauer/xdg-utils-ng/issues/2

many thanks!
 
Old 10-20-2016, 01:07 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,006

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Good to know that a bug report exists... although not much activity it would seem. I guess not many are using that feature.
 
Old 11-12-2022, 09:16 AM   #6
Bernard_M
LQ Newbie
 
Registered: Nov 2022
Posts: 1

Rep: Reputation: 0
I know this is an old question, but I found the same issue still active. I think the problem is that xdg-email doesn't handle --attach when using mailto: format. I use claws-mail, and enabled scan to email by adding at the start of /usr/bin/xdg-email the lines

# to fix scan to email, when xdg-email doesnt handle attachment in its mailto: form
if [ \( $# -eq 2 \) -a \( $1 = "--attach" \) -a \( -x /usr/bin/claws-mail \) ]
then exec /usr/bin/claws-mail $@
fi

Try replacing the "claws-mail" reference with "/usr/bin/thunderbird" (if that's the correct path on your system) ?
 
  


Reply

Tags
email sbcglobal, lxde "launch bar", simple-scan


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
Simple Scan Does Not Save Scan julianvb Linux - Software 4 10-04-2016 10:20 PM
sending email still send to email to control account although it deleted from useres ahmedsa Linux - Server 3 04-10-2015 04:22 AM
Problem sending email through new email server bigben747 Linux - Server 3 01-26-2009 05:16 PM
SuSE Postfix not sending mail at all. Simple email script. Lantzvillian Linux - Server 6 05-09-2008 03:28 PM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 01:26 PM

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

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