You are not logged in.

#1 2020-08-27 19:38:09

Tempest002
Member
Registered: 2020-08-26
Posts: 16

Strange behaviour of dwm with bash scripts [Solved]

Recently I got lightdm to work, but this seems to effect dwm in some way.

Before lightdm I used "startx" to start dwm and other stuff. I put my settings from ".xinitrc" in a ".xprofile" file
and everything works fine besides one thing:

I cant execute my bash scripts with keybindings anymore! (dwmblocks cant execute my scripts either, but I think its the same problem)
Normal programms like alacritty or brave work normal.
And the scripts themselves work fine, when I run them in the terminal.

Sadly I got no real clues why this is happening.
The only hint I got is that neofetch now shows "DE: custom", it didnt show this when I used startx.

I link a few files below:
.xprofile:  http://ix.io/2vqy
config.def.h-snippet: http://ix.io/2vqA

Last edited by Tempest002 (2020-08-27 22:50:25)

Offline

#2 2020-08-27 20:12:59

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Strange behaviour of dwm with bash scripts [Solved]

Don't fork setxkbmap, xrandr and xwallpaper.

Are "my bash scripts" in $PATH?

("echo $PATH > /tmp/path.dbg" in your xprofile - the $PATH in the interactive shell is irrelevant)

Offline

#3 2020-08-27 20:38:03

Tempest002
Member
Registered: 2020-08-26
Posts: 16

Re: Strange behaviour of dwm with bash scripts [Solved]

Don't fork setxkbmap, xrandr and xwallpaper.

I guess I dont really need setxkbmap if I set it with loadkeys, but how should I run xrandr and xwallpaper?
Should I put them into .bash_profile or use the autostart patch of dwm or something?

And yes my scripts folder is in $PATH, already checked that.

[ins]/home/sebi/Scripte[/ins]:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

Offline

#4 2020-08-27 20:41:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Strange behaviour of dwm with bash scripts [Solved]

Don't fork == remove the trailing "&" - otherwise you're provoking race conditions.


How *exactly* did you check that?
Again: the output in your interactive shell (a terminal running bash) is irrelevant here. You want to know whether the correct $PATH exists in xprofile.

Offline

#5 2020-08-27 20:43:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,515
Website

Re: Strange behaviour of dwm with bash scripts [Solved]

How or where did you check the PATH exactly?  Where is /home/sebi/Scripte added to your PATH?

EDIT: too slow ...

Last edited by Trilby (2020-08-27 20:43:38)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-08-27 20:52:09

Tempest002
Member
Registered: 2020-08-26
Posts: 16

Re: Strange behaviour of dwm with bash scripts [Solved]

@seth, sorry took a sec to understand what you mean.
Now I put the echo command you gave me in my .xprofile and here is path.dbg

/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

And behold, my script folder is not there.

What can I do to fix it?

Offline

#7 2020-08-27 20:53:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: Strange behaviour of dwm with bash scripts [Solved]

export the extended $PATH in xprofile.

Offline

#8 2020-08-27 20:59:07

Tempest002
Member
Registered: 2020-08-26
Posts: 16

Re: Strange behaviour of dwm with bash scripts [Solved]

It worked, my keybindings work again!

Thank you for the second time wink

Offline

#9 2020-08-27 22:39:33

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Strange behaviour of dwm with bash scripts [Solved]

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB