nwg-piotr / nwg-drawer

Application drawer for wlroots-based Wayland compositors
MIT License
233 stars 25 forks source link

It seems that the spaces in the command line options are not being handled properly. #126

Open jiggol opened 1 month ago

jiggol commented 1 month ago

Hello Thank you for developing such a great program.

First, let me show you the logs.

time="2024-07-14T22:49:11+09:00" level=info msg="command: \"/usr/bin/env\"; args: [\"-S\" \"flatpak run --command=bottles-cli com.usebottles.bottles run -p Synology Surveillance Station Client -b Synology Surveillance --\"]\n"
time="2024-07-14T22:49:11+09:00" level=debug msg="UI hidden and restored in the backgroud in 21 ms"

This is a part of the .desktop file's contents.

[Desktop Entry]
Name=Synology Surveillance Station Client
Exec=flatpak run --command=bottles-cli com.usebottles.bottles run -p 'Synology Surveillance Station Client' -b 'Synology Surveillance' -- %u
Type=Application
Terminal=false
Categories=Application;

I believe the problem lies in the Exec part of the command options within the .desktop file. The argument contains spaces, so it is enclosed in single quotes. However, when executed by nwg, the logs show that the single quotes are missing. This might be the reason why it is not running. When I try to execute it, there is no response at all.

Thank you.