kde plasma - KDE application menu and KRunner won't launch an Electron app from a .desktop file - Stack Overflow

I have created an Electron application called whatsapp-pwa and a corresponding .desktop file at homeu

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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信