Nemo action for attach to email doesn't attach, only open editor

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
User avatar
Dan-cer
Level 6
Level 6
Posts: 1161
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Nemo action for attach to email doesn't attach, only open editor

Post by Dan-cer »

Today I got e few Nemo rightclick actions created by smurphos. One of them is to attach the active file to email.
The code is with an implemented script. See below.
I'm using the inbuilt mail client of Vivaldi browser as standard client. It is defined in my 21.3 Cinnamon desktop settings.
With the exec command the editor tab of the browser is opened. However, without the attachment.
Have you any idea how to edit the code to make it work?

Code: Select all

[Nemo Action]

Name=_Attach to email
Comment=Attach %F to email in default mail application
Exec=<action_scripts/attach_to_email_xdg-email.sh %F>
Icon-Name=mail-attachment-symbolic
Selection=notnone
Extensions=nodirs
Quote=double
Dependencies=xdg-email;

Code: Select all

#!/bin/bash
COMMAND="xdg-email"
for file in "$@"
do
  COMMAND="$COMMAND --attach '$file'"
done
sh -c "$COMMAND"
How you get better results when searching for yourself.
User avatar
Dan-cer
Level 6
Level 6
Posts: 1161
Joined: Fri Jul 29, 2022 4:56 pm
Location: Germany, Lower Saxony

Re: Nemo action for attach to email doesn't attach, only open editor

Post by Dan-cer »

Does anybody have an idea for a solution?
Or experiences with other mail clients except thunderbird (which has an extra action that works)?
How you get better results when searching for yourself.
Post Reply

Return to “Cinnamon”