stefonarch / lxqt-labwc-session

Full configured LXQt Wayland session using labwc with some limitations
GNU General Public License v3.0
29 stars 2 forks source link

More portable #9

Closed isf63 closed 4 months ago

isf63 commented 4 months ago

https://github.com/stefonarch/lxqt-labwc-session/blob/5fceab129d581c2dcc5c8b5f228e14242e9d4220/startlxqtlabwc.in#L95 uses which which I had to install separately or the session failed. whereis labwc | awk '{print $2}' is more portable on typical distros (base on Arch brings in awk and whereis).

stefonarch commented 4 months ago

Thanks! Saw it which is in base-devel though.

stefonarch commented 4 months ago

I applied the change badly and reverted it. I don't understand why you didn't have which: https://archlinux.org/packages/core/any/base-devel/

There is another issue with it, as in my case:

$ whereis labwc | awk '{print $2}'
/usr/bin/labwc
$ which labwc
/usr/local/bin/labwc
isf63 commented 4 months ago

I don't have base-devel installed although I probably should in the future.

$ which labwc /usr/local/bin/labwc

Looks like which is the right tool then, looks like it is included by default on Debian/Ubuntu too. Not a big issue.