Creating Desktop Shortcuts for an AppImage

I have created the following .desktop file on dom0

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
X-Qubes-VmName=Tuta
X-Qubes-AppName=tutanota-desktop
Icon=/home/admin/.local/share/qubes-appmenus/Tuta/apps.icons/tutanota-desktop.png
Name=Tuta (dvm): Tuta Mail
GenericName=Tuta: Mail Client
Comment=The desktop client for Tuta Mail, the secure e-mail service.
Categories=Network;X-Qubes-VM;

X-Qubes-NonDispvmExec=qvm-run -q -a --service -- /home/user/tutanota-desktop-linux.AppImage
Exec=qvm-run -q -a --dispvm=Tuta -- /home/user/tutanota-desktop-linux.AppImage

The purpose of this desktop icon, is to quickly launch the Tuta mail app in a dispvm. Currently Tuta only provides appimage. The appImage is located in Tuta AppVM - based on Debian 12. The Disposable Template setting is checked off in the Advanced Tab.

When i click on the tuta icon, it opens but does not connect to internet. I opened terminal and im getting pings when i execute ping 1.1.1.1. So it must be an AppImage issue?

I have also created a desktop shortcut for thunar in the same dispvm. When i click on that, it opens thunar and if i click on the appimage from thunar, tuta connects successfully.

I have also created a Tuta mail desktop shortcut for the opening the AppImage in Tuta AppVM instead of dispvm for testing purposes. Clicking on this, opens the AppImage and connects successfully.

Here is the .desktop file on dom for opening the AppVM version.

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
X-Qubes-VmName=Tuta
X-Qubes-AppName=tutanota-desktop
Icon=/home/admin/.local/share/qubes-appmenus/Tuta/apps.icons/tutanota-desktop.png
Name=Tuta: Tuta Mail
GenericName=Tuta: Mail Client
Comment=The desktop client for Tuta Mail, the secure e-mail service.
Categories=Network;X-Qubes-VM;
Exec=qvm-run -q -a --service -- Tuta qubes.StartApp+tutanota-desktop
X-Qubes-DispvmExec=qvm-run -q -a --service --dispvm=Tuta -- qubes.StartApp+tutanota-desktop

Can anyone explain this?

The proper way is to make disposable template with tuta installed there and .desktop file located in tuta disposable template in ~/.local/share/applications

In dom0 you invoke qvm-appmenu --update dvm-tuta

Then in dvm-tuta in settings add tuta application to menu.

Now you can load disposable from menu QAppsdvm-tutaTuta Mail

There is my tutanot-desktop.desktop

[Desktop Entry]
Name=Tuta Mail
Comment=The desktop client for Tuta Mail, the secure e-mail service.
GenericName=Mail Client
Keywords=Email;E-mail
Exec="/home/user/Applications/tutanota-desktop-linux.AppImage" %U
Terminal=false
Type=Application
Icon=tutanota-desktop
StartupWMClass=tutanota-desktop
MimeType=x-scheme-handler/mailto;
Categories=Network;
X-Tutanota-Version=309.250918.1
TryExec=/home/user/Applications/tutanota-desktop-linux.AppImage

I think it was created during first tuta launch (I’m launching in normal appVM, for you it would be in template/dvm-tuta)

4 Likes

I’m not sure if it is relevant but you don’t have the --service option here.

But anyway, @KitsuneNoBaka has a better advice :slight_smile:

2 Likes