Quote:
Originally Posted by evo2
it looks to me like the wmctrl line won't be run until the terminal exits.
|
No, that's not it, because xfce4-terminal doesn't depend on the parent shell like other terminal emulators I tested. Running an instance of xfce4-terminal just brings you back to the prompt. That being said, I tried your method anyway and it didn't cause the script to behave any differently on startup, though it did break its normal functionality (when it's called from a terminal.)
Incidentally I have also tried running bash -c "fssterm; exit 0" on startup instead which seems like it should work but it doesn't for some reason. It does exactly what fssterm does on its own - inside a terminal it works and outside it doesn't.
EDIT: Success! I got it to work by creating a script called fssterm-exec that simply runs fssterm from another instance of xfce4-terminal (via the -x option.) Admittedly not a very elegant solution, but at least it works (bear in mind I did try to nest the fssterm code within a call to xfce4-terminal with the -x option in the main script so as to avoid having two scripts but it didn't work.)