[xmonad] spawnOn in startupHook only works for one Nemo window, not the other
Adam Sjøgren
asjo at koldfront.dk
Sat Nov 2 09:39:06 UTC 2019
Hi,
I'm using spawnOn in my startupHook to open various programs on various
virtual desktops when logging in - it's quite nice to have that happen
automatically.
I start two instances of the Nautilus (file manager) fork Nemo:
spawnOn "7" "nemo ~/video/"
spawnOn "7" "nemo ~/video/tablet/"
But only one of them ends up on desktop 7. The one other is placed on
the current desktop.
I have tried adding a "sleep 2;" to one of them, to see if it was some
timing thing, but the same thing happens.
I have also tried to combine them, and have one line starting "nemo
~/video/" nemo ~/video/tablet/", same thing.
Oh, and as I am typing this, I realize that the second invocation
probably doesn't start a lasting separate process, but messages the
first to open a new window, and that original process then opens it,
might be why spawnOn seems to "not work".
Maybe I should just use manageSpawn to have all Nemo windows end up on
desktop 7.
I guess I have rubber ducked myself into the answer, but any comments
are welcome regardless.
Best wishes,
Adam
--
"Please don't "meh" the panopticon. You are Adam Sjøgren
not making things better by doing that." asjo at koldfront.dk
More information about the xmonad
mailing list