How to run a shell script clicking directly on a desktop icon saved on the desktop. reddit / BSD ---------------------------------------------------------------------- loziomario · 2021-10-13 22:30 Hello. I'm on FreeBSD 13R,where I have installed KDE 5. I've created a shortcut to application,pointing to the command that you see below and I would like to run it while clicking on the icon saved on my desktop. Actually it does not work ; when I click it on the desktop icon nothing happens. What's wrong ? I'm using the csh shell. ​ `[Desktop Entry]` `Comment[it_IT]=` `Comment=` `Exec=/usr/sbin/chroot /compat/ubuntu /bin/bash` `GenericName[it_IT]=` `GenericName=` `Icon=system-run` `MimeType=` `Name[it_IT]=ubuntu-chroot` `Name=ubuntu-chroot` `Path=` `StartupNotify=true` `Terminal=false` `TerminalOptions=` `Type=Application` `X-DBUS-ServiceName=` `X-DBUS-StartupType=` `X-KDE-SubstituteUID=false` `X-KDE-Username=` ---------------------------------------------------------------------- -kilix- · 2021-10-14 05:14 Try to prepend the command with "konsole -e" (without the quotation marks). I am not sure how these KDE launchers work though. I would write a normal #!/bin/sh oneliner instead. ---------------------------------------------------------------------- loziomario · 2021-10-14 10:10 like this ? ​ \[Desktop Entry\] Comment\[it\_IT\]= Comment= Exec=konsole -e /usr/sbin/chroot /compat/ubuntu /bin/bash GenericName\[it\_IT\]= GenericName= Icon=system-run MimeType= Name\[it\_IT\]=Ubuntu-Chroot Name=Ubuntu-chroot Path= StartupNotify=true Terminal=false TerminalOptions= Type=Application X-DBUS-ServiceName= X-DBUS-StartupType= X-KDE-SubstituteUID=false X-KDE-Username= ​ a window opens and closes immediately when I click on the desktop icon.