yofi icon indicating copy to clipboard operation
yofi copied to clipboard

Yofi launches through terminal but not through sway config

Open cm320 opened this issue 2 years ago • 4 comments

Other launchers like dmenu and rofi launch fine setting the $menu as the command that opens it from terminal.

Output of swaymsg exec yofi results [common/ipc-client.c:67] Unable to connect to /run/user/1001/sway-ipc.1001.1158.sock

Have exhausted my google-fu and don't know what next to do

cm320 avatar Oct 07 '21 16:10 cm320

swaymsg exec yofi works for me, what's your terminal? Also make sure that $SWAYSOCK is a valid socket file.

Anyway that's a sway message from here. So I suppose it's an issue of swaymsg, not yofi's. This one might be related: https://github.com/swaywm/sway/issues/6451 and perhaps sway troubleshooting at arch wiki might help.

l4l avatar Oct 07 '21 21:10 l4l

I've had the same problem, the solution is to... well set $menu "yofi apps" or more specifically and error proof. bindsym Mod4+d exec "yofi apps" It seems that "yofi apps" works, it's just a specification of what mode of yofi you want to start with, the default is yofi.

Did I get the issue wrong? omg. I need to learn more english then.

pragmaticmero avatar Feb 24 '22 14:02 pragmaticmero

That's quite a strange behavior, may I ask you for stderr log of sway? There may be be some hint.

yofi apps actually avoids blacklist handling (that one is a bug), perhaps it related somehow.

l4l avatar Feb 24 '22 17:02 l4l

I ran into a similar issue, except that swaymsg exec yofi wouldn't produce any output (with exit code 0) while running yofi from the terminal worked just fine. In my case the issue was that I installed yofi via cargo, resulting the binary being placed in $HOME/.cargo/bin/yofi. This combined with adding $HOME/.cargo/bin via set -U fish_user_paths $HOME/.cargo/bin $fish_user_paths meant that fish knew about the path, but sway didn't. P.S. posting this as a comment of this issue, since that's what my search engine found when looking for a solution for the above problem.

exul avatar May 01 '23 21:05 exul