I have created an Electron application called whatsapp-pwa
and a corresponding .desktop file at /home/user/.local/share/applications/whatsapp-pwa.desktop
The content of whatsapp-pwa.desktop
is
[Desktop Entry]
Type=Application
Name=WhatsApp PWA
Exec=/home/user/mypath/whatsapp-pwa/node_modules/.bin/electron user/mypath/whatsapp-pwa
Icon=whatsapp
Terminal=false
Categories=Network;InstantMessaging;
StartupWMClass=whatsapp-pwa
and
desktop-file-validate whatsapp-pwa.desktop
shows no error. The application launches successfully when I run the following command manually:
/home/user/mypath/whatsapp-pwa/node_modules/.bin/electron /home/user/mypath/whatsapp-pwa
Additionally, I can launch it using gtk-launch:
gtk-launch whatsapp-pwa.desktop
However, when I try to open it from the KDE application menu or KRunner, nothing happens. What could be preventing KDE from launching my Electron app via the .desktop file?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744871501a4598287.html
评论列表(0条)