Closed b-zee closed 4 years ago
Hi!
Using Wayland/Sway
What does this have to do with i3 or specifically i3-gaps then? i3 is not intended for anything outside of X11.
Good question. I inspected the tool i3-dmenu-desktop
and didn't see anything specific to X11. You can close this issue.
Edit: I just confirmed it works fine with X11/i3. It must be specific to Sway then. I'm sorry to have bothered.
There's nothing X specific in it, you're right. But Wayland / sway are an environment we cannot support. You'd have to reproduce it under X. I doubt that this is an issue in i3-dmenu-desktop though and rather how Discord behaves. Really all we do is execute the desktop file. If it works for other programs I'd start looking into Discord. :-)
For the record: I've narrowed it down to desktop entries containing Path=
. The message with to i3-msg
seems correct though. It's still a mystery to me how the application doesn't launch on Sway. As if i3-msg "exec x && y
only executes y
on Sway.
Under sway I assume i3-msg is a synonym for swaymsg, right? So it's not the original i3-msg? Playing with quoting could be an idea, or making sure the return code of x is correct.
i3-msg
is not a synonym. It executes the binary from i3. This is probably asking for problems?
Printing what gets executed is the following: exec "cd \"/usr/bin\" && /usr/bin/discord"
. With that I guess I can replicate the behaviour (does not launch Discord on Sway but does on i3):
$ i3-msg 'exec "cd \"/usr/bin\" && /usr/bin/discord"'
[ { "success": true } ]
Although I'm don't know much about Perl and how the quoted string given by print STDOUT $cmd
is what is passed to i3-msg
. Anyhow, I guess I will just accept that something is off. I don't know enough about i3-msg
and the differences between i3/X11 and Sway/Wayland to even begin thinking about reasons this can result in different behaviour.
My guess would still be that this is rather something specific to Discord, or does it happen with other apps if the Path property is set?
Yes, this happens with all desktop entries containing Path
.
I'm submitting a…
Current Behavior
When choosing 'Discord' from i3-dmenu-desktop, the tool returns
[ { "success": true } ]
, but does not launch Discord.Expected Behavior
Same as above, but does launch Discord.
Reproduction Instructions
Using Wayland/Sway: i3-dmenu-desktop is launched from terminal, typing in 'Discord', which will find the 'Discord' desktop entry, pressing enter. Nothing happens. (
gtk-launch discord
anddex /usr/share/applications/discord.desktop
do work. Every other desktop entry I know of launches fine with i3-dmenu-desktop.)Environment
Output of
i3 --moreversion 2>&-
:Using Discord 0.0.10. Contents of
discord.desktop
:I have also tried with removing the last duplicate
Path
line.I'd be happy to include any log; I couldn't find how to debug the i3-dmenu-desktop tool.