dnkl changed the topic of #foot to: Foot - fast, lightweight and minimalistic Wayland terminal emulator || 1.13.1 || https://codeberg.org/dnkl/foot || channel logs: https://libera.irclog.whitequark.org/foot
radu24275343 has joined #foot
smach has joined #foot
radu24275343 has quit [Ping timeout: 256 seconds]
smach has quit []
xd1le has joined #foot
cvmn has joined #foot
cvmn has quit [Quit: the #end of the abyss]
cvmn has joined #foot
cvmn has quit [Remote host closed the connection]
cvmn has joined #foot
caveman has quit [Remote host closed the connection]
caveman has joined #foot
smach has joined #foot
xenrox has quit [Remote host closed the connection]
xenrox has joined #foot
cvmn has quit [Ping timeout: 255 seconds]
bgs has joined #foot
bgs has quit [Remote host closed the connection]
caveman has quit [Remote host closed the connection]
caveman has joined #foot
smach has quit []
caveman has quit [Ping timeout: 255 seconds]
alexherbo2 has joined #foot
caveman has joined #foot
smach has joined #foot
smach has quit [Client Quit]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #foot
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #foot
smach has joined #foot
hardcoresushi has joined #foot
caveman has quit [Remote host closed the connection]
phost has joined #foot
caveman has joined #foot
caveman has quit [Ping timeout: 255 seconds]
sav_ has joined #foot
xd1le has quit [Quit: xd1le]
bgs has joined #foot
phost has quit [Quit: WeeChat 3.7.1]
hardcoresushi has quit [Ping timeout: 260 seconds]
hardcoresushi has joined #foot
hardcoresushi has quit [Read error: Connection reset by peer]
hardcoresushi has joined #foot
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #foot
cbb has joined #foot
caveman has joined #foot
bgs has quit [Remote host closed the connection]
caveman has quit [Ping timeout: 255 seconds]
caveman has joined #foot
cbb has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #foot
cbb has joined #foot
cbb has quit [Quit: WeeChat 3.7.1]
smach has quit [Ping timeout: 260 seconds]
smach has joined #foot
cbb has joined #foot
<cbb> hardcoresushi: did you figure anything out with that problem you were having?
<cbb> I think I know what's causing it
<hardcoresushi> cbb: No, but I noticed that sway-launcher-desktop seems to have the same issue: https://github.com/Biont/sway-launcher-desktop/blob/master/sway-launcher-desktop.sh#L347
<hardcoresushi> Oh, what could it be ?
<cbb> try this:
<cbb> foot nohup sh -c "sh -c 'echo 1 > log' &"
<cbb> that's your example from before, but with nohup before the first "sh -c"
<cbb> it creates the log file, if you run it like that
<hardcoresushi> cbb: Yes, it's strange
alexherbo2 has quit [Ping timeout: 260 seconds]
<hardcoresushi> How do you explain it ?
<cbb> running the second shell with the async operator (&) causes the process group to get killed with SIGHUP
<cbb> I'm guessing you're using that so you can run your program from either a terminal or a launcher?
<cbb> I was just tackling a similar problem in one of my scripts
<cbb> if you can post a more complete example of what you're trying to do, I could take a look at it
<cbb> hardcoresushi: (I keep forgetting to ping you)
<hardcoresushi> cbb: but isn't "nohup" supposed to block SIGHUP ?
<cbb> yes and it does, in that example I just sent
<hardcoresushi> cbb: But why it doesn't when "nohup" is inside the shell ?
<hardcoresushi> Yes I use foot to launch an emoji picker that starts wtype in background. Your solution solved my problem but I can't understand exactly why
<cbb> hardcoresushi: I think it's because the whole process group gets a SIGHUP
<hardcoresushi> cbb: Oh OK, but so why does a sleep also fixes the problem?
<cbb> if you use nohup on the outermost shell, all the children inherit the ignored signal
<cbb> hardcoresushi: I guess because it keeps the inner shell in the foreground for long enough for the aync echo to finish what it's doing
<cbb> in that other example you posted
<hardcoresushi> I don't think so because: foot sh -c "nohup sh -c 'sleep 1; echo 1 > log' & sleep .1"
<hardcoresushi> Creates the file after foot closed
caveman has quit [Ping timeout: 255 seconds]
caveman has joined #foot
Biolunar has quit [Quit: brb]
hardcoresushi has quit [Quit: WeeChat 3.7.1]
taupiqueur has quit [Ping timeout: 256 seconds]