Plasma - Send to Gmail

Does KDE Plasma exist or would it be possible to create the functionality implemented in GNOME - Gnome Gmail? This extension allows you to send any file to a new Gmail automatically created message using send to. There is a forward by mail function in KDE Plasma but I can’t get it to work with Gmail without an email client.

There’s no reason that “GNOME Gmail” won’t work in KDE - it isn’t really GNOME specific, so I’m not sure why they even call it that. It just a command line tool that has OAuth integration from one side, and registers as an email client in all the right places.

I installed it on my Neon setup, using Discover, then when I open “Default Applications” I can see that it is already set up as the default email client (I didn’t have one set up before) and now I can right click a file, select “Share” and “to email” and it pops open a GMail window (on the first run there’s some setup steps to complete).

On my specific setup, it doesn’t actually open the compose box, instead it sets up a draft and shows me the list of drafts and I have to click the draft I want to send. It may be a problem with my Google Workspace account or maybe something changed in GMail that the software didn’t adapt to yet.

For me it doesn’t work even in the way you describe. The program actually installed, but when I try to send the file (after configuration), the window just blinks and the browser does not start. It doesn’t add anything in draft versions either.
journalctl -b | grep gnome
mar 24 21:26:00 madzia-z97xgaming5 systemd[1136]: app-gnome\x2dgmail-b46c8274f76a4be484c2b9f5d6c04e17.scope: Couldn’t move process 4869 to requested cgroup ‘/user.slice/user-1000.slice/user@1000. service/app.slice/app-gnome\x2dgmail-b46c8274f76a4be484c2b9f5d6c04e17.scope’: No such process
mar 24 21:26:00 madzia-z97xgaming5 systemd[1136]: app-gnome\x2dgmail-b46c8274f76a4be484c2b9f5d6c04e17.scope: Failed to add PIDs to scope’s control group: No such process
mar 24 21:26:00 madzia-z97xgaming5 systemd[1136]: app-gnome\x2dgmail-b46c8274f76a4be484c2b9f5d6c04e17.scope: Failed with result ‘resources’.
mar 24 21:26:36 madzia-z97xgaming5 systemd[1136]: app-gnome\x2dgmail-b6434c050964499b80c15bb094a36d9d.scope: Couldn’t move process 4907 to requested cgroup ‘/user.slice/user-1000.slice/user@1000. service/app.slice/app-gnome\x2dgmail-b6434c050964499b80c15bb094a36d9d.scope’: No such process
mar 24 21:26:36 madzia-z97xgaming5 systemd[1136]: app-gnome\x2dgmail-b6434c050964499b80c15bb094a36d9d.scope: Failed to add PIDs to scope’s control group: No such process
mar 24 21:26:36 madzia-z97xgaming5 systemd[1136]: app-gnome\x2dgmail-b6434c050964499b80c15bb094a36d9d.scope: Failed with result ‘resources’.
mar 24 21:27:37 madzia-z97xgaming5 systemd[1136]: app-gnome\x2dgmail-afadba29862c4cd78bfd9a033680b665.scope: Couldn’t move process 5367 to requested cgroup ‘/user.slice/user-1000.slice/user@1000. service/app.slice/app-gnome\x2dgmail-afadba29862c4cd78bfd9a033680b665.scope’: No such process
mar 24 21:27:37 madzia-z97xgaming5 systemd[1136]: app-gnome\x2dgmail-afadba29862c4cd78bfd9a033680b665.scope: Failed to add PIDs to scope’s control group: No such process
mar 24 21:27:37 madzia-z97xgaming5 systemd[1136]: app-gnome\x2dgmail-afadba29862c4cd78bfd9a033680b665.scope: Failed with result ‘resources’.

Seems like a misconfiguration somewhere? Are you running Neon or something else?

What happens when you run, from the terminal, gnome-gmail file://$HOME/somefile-at-your-home ?

I’ve noticed that the gnome-gmail command tries to use libwnck - which would explain why the behavior I get is not as advertised: it probably tries to control the GMail window directly but I’m running on Wayland and libwnck doesn’t work on Wayland.

Yes, Kde NEON
gnome-gmail file://$HOME/neon.txt
Traceback (most recent call last):
File “/usr/share/gnome-gmail/gnomegmail.py”, line 1031, in
main()
File “/usr/share/gnome-gmail/gnomegmail.py”, line 1014, in main
gmailurl = gm_url.gmail_url(args.send)
File “/usr/share/gnome-gmail/gnomegmail.py”, line 663, in gmail_url
gmailurl = self.api_gmail_url(send)
File “/usr/share/gnome-gmail/gnomegmail.py”, line 635, in api_gmail_url
old_access, old_refresh = keys.getTokens(self.from_address)
File “/usr/share/gnome-gmail/gnomegmail.py”, line 829, in getTokens
password = Secret.password_lookup_sync(self.TOKEN_SCHEMA,
gi.repository.GLib.GError: g-dbus-error-quark: The name org.freedesktop.secrets was not provided by any .service files (2)
Error in sys.excepthook:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/apport_python_hook.py”, line 153, in apport_excepthook
with os.fdopen(os.open(pr_filename,
FileNotFoundError: [Errno 2] Nie ma takiego pliku ani katalogu: ‘/var/crash/_usr_share_gnome-gmail_gnomegmail.py.1000.crash’

Original exception was:
Traceback (most recent call last):
File “/usr/share/gnome-gmail/gnomegmail.py”, line 1031, in
main()
File “/usr/share/gnome-gmail/gnomegmail.py”, line 1014, in main
gmailurl = gm_url.gmail_url(args.send)
File “/usr/share/gnome-gmail/gnomegmail.py”, line 663, in gmail_url
gmailurl = self.api_gmail_url(send)
File “/usr/share/gnome-gmail/gnomegmail.py”, line 635, in api_gmail_url
old_access, old_refresh = keys.getTokens(self.from_address)
File “/usr/share/gnome-gmail/gnomegmail.py”, line 829, in getTokens
password = Secret.password_lookup_sync(self.TOKEN_SCHEMA,
gi.repository.GLib.GError: g-dbus-error-quark: The name org.freedesktop.secrets was not provided by any .service files (2)

It looks like the application tries to use the desktop password manager to store it’s authorization details. Check if you have kwalletd running.