How to set a recursevly PATH under wayland

Zener zener78 at gmail.com
Sat May 13 12:51:28 UTC 2023


Hi.

I'd like a recursevly path for exec in .desktop files under wayland.

As wiki 
https://wiki.archlinux.org/title/Environment_variables#Wayland_environment, 
i can add personal path in ~/.config/environment.d/envvars.conf.

So, adding in that file PATH=$PATH:/home/myhome/my/PATH it works for 
that directory, but I need as PATH all subdirectory too.

In .bashrc, for example, I solved just for the shell adding as below.

export PATH="$PATH:$(du -L /home/myhome/my/PATH | cut -f2 | tr '\n' ':' 
| sed 's/:*$//')"

Can I use something similar for the wayland enviroment?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20230513/eaf9a02f/attachment.htm>


More information about the wayland-devel mailing list