Tangential. I tried everything to replicate the basic function of an app launcher in a terminal - i.e. launch a GUI app while leaving the terminal unaffected and have the app survive without spontaneous combustion at some random point later - before finally giving up. Yes, background process. Yes, disown. Yes, redirect all output to null. Yes, nohup. Yes, every combination of the above. Nothing really worked. So I now have a mystical reverence for the people who write app launchers.
Yeah, thanks, been to all these places already,sleep included (except setsid in Wayland but I doubt that’s the crucial issue). And yes it does work, sort of - the problem is that the apps exit spontaneously at some point later - sometimes hours, sometimes days - which absolutely does not happen when I launch them in whatever “official” way. In the end I just gave up. Needing a sleep hack is a bit of a red flag after all.
Tangential. I tried everything to replicate the basic function of an app launcher in a terminal - i.e. launch a GUI app while leaving the terminal unaffected and have the app survive without spontaneous combustion at some random point later - before finally giving up. Yes, background process. Yes,
disown. Yes, redirect all output to null. Yes,nohup. Yes, every combination of the above. Nothing really worked. So I now have a mystical reverence for the people who write app launchers.In X11 you can just use ‘exec app-name’ and it will replace the terminal window with the app. In Wayland, I got it to work with this:
setsid app-name & disown sleep 1 exitWithout the ‘sleep 1’, it exits the terminal too quickly for the app to launch, at least when I tried it.
*Edit: In order for it to work as a script, you still need to type exec first. Or, in my case, I aliased “open-app” to “exec open-app”.
Yeah, thanks, been to all these places already,
sleepincluded (exceptsetsidin Wayland but I doubt that’s the crucial issue). And yes it does work, sort of - the problem is that the apps exit spontaneously at some point later - sometimes hours, sometimes days - which absolutely does not happen when I launch them in whatever “official” way. In the end I just gave up. Needing asleephack is a bit of a red flag after all.