Thanks for the answer, I suceeded adding a .desktop file for Davmail.
This is how it works (to have it added to mailng archive)
1) launch the Template VM on which your email-AppVM which has DavMail installed is running
2) Create a new .desktop file
bash-4.4# nano /usr/share/applications/davmail.desktop
[Desktop Entry]
Name=DavMail
GenericName=DavMail
Comment=Exchange-to-IMAP Bridge
Exec=/home/user/bin/davmail/davmail.sh
Terminal=false
Type=Application
Encoding=UTF-8
Icon=xterm-color
Categories=Network;Email;
X-Desktop-File-Install-Version=0.23
3) while the template is still running sync app-menus in dom0
[user@dom0 ~]$ qvm-sync-appmenus <NAME-OF-MAILTEMPLATEVM>
4) Add the new Shortcut to the menu of your Email-AppVM via Qubes Settings
As far as I found out via Google Search ~/.config/autostart will only run .desktop files.
You might also want to look at this solution:
Create a desktop file which will start a ("helper")script which will run othr scripts from a certain location.
[Desktop Entry]
Exec=autostart-exec.sh
Icon=system-run
# NotShowIn=GNOME # Run in all X environments
Terminal=false
TerminalOptions=
Type=Application
This referenced a script that would call each script in the autostart-scripts
directory (using the directory determination from the Autostart spec):
#!/bin/sh
shopt -s nullglob # Ensure shell expansion with 0 files expands to an empty list, rather than trying to read the "*.sh" file
if [ -z "$XDG_CONFIG_HOME" ]; then
XDG_CONFIG_HOME=~/.config
fi
for f in "$XDG_CONFIG_HOME/autostart-scripts/"*.sh; do
test -x "$f" && . "$f" || true
done
regards
- O