Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$PATH is not read when launched from i3wm configuration #45

Open
Kabouik opened this issue Jun 7, 2021 · 1 comment
Open

$PATH is not read when launched from i3wm configuration #45

Kabouik opened this issue Jun 7, 2021 · 1 comment

Comments

@Kabouik
Copy link

Kabouik commented Jun 7, 2021

This is probably not an issue with the script itself but with the way I use it, but somehow sway-launcher-desktop.sh doesn't find all my executable files in $PATH when I run it from my i3wm configuration (i.e., with a keybinding), but it does when I run it directly in a terminal. Any ideas of what I am doing wrong?

Is there any way to make a script run from Sway/i3 inherit environment variables in .bashrc? I have tried running the script with bash using set $menu exec kitty --name=launcher -e /bin/bash -c '~/Projects/sway-launcher-desktop/sway-launcher-desktop.sh' but that didn't help.

@mpldr
Copy link

mpldr commented Mar 17, 2022

I'd suggest changing the command to
set $menu exec kitty --name=launcher bash '~/Projects/sway-launcher-desktop/sway-launcher-desktop.sh'

I am using zsh but with this command it reads my environment just fine. Also: I can't seem to find -e in kitty's docs and -c provides the config to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants