X and Fluxbox :: Using .xinitrc to launch programs at startup
mikshaw, I was just going off what was posted, i just copied and pasted what was there. I left the (&) out on purpose so the slide show could load with out the window in the front. Do you know what the command would be to minimize gqview main window so it's not in front of the slide show on start up?
arkroan, i'll keep looking and trying in qemu. I'm sure the solution is right there but i'm missing it.
I'm thinking just go with this " gqview -s -f && ". You can always just exit gqview to modify.
example: gqview -s -f /home/dsl/pics &&
mikshaw: The case command was already there when i installed dsl, i cannot understand the use of it though. I have also noticed the
case statements that are not needed, but because i do not know the spelling i could not understand which characters are required and which
are not in a statement. (end of statement is ";;" or " *)" )
What is the use of jmw?? (ends a statement?).
Is there any possibility to execute the program outside the case statement (after the case is executed)?
kerry: I was thinking of that too.. Having an instruction through the command line to minimize the window would be handy..
I want to thank you for your replies kerry & mikshaw. it is so good to see people willing to help.
kerry: Please be careful about typos =o)
The line gqview -s -f /home/dsl/pics && will likely cause trouble (or at least it serves no purpose) because "&&" means "If the prior command is successful, then run the following command". There is nothing following "&&", so no command will run. I can't say if it will cause an error or if it will just do nothing, waiting for input.
arkroan: Case is a fairly commonly used command that performs different actions depending on the content of whatever immediately follows the word "case". It's the equivalent of "if something; do this; elif something else; do that; else do the other thing; fi", but it's just easier and cleaner than a pile of elifs.
In the default .xinitrc case, the $DESKTOP variable is checked to see what is listed in $HOME/.desktop, and is compared to each section of the case block, starting from the top and continuing until it finds a match. Each section of a case block starts with an expression followed by ")", then the commands to run if the expression matches $DESKTOP, and ends with ";;".
Case often contains a "*" as the last expression, which is a wildcard that matches anything, including a nil value. This is useful if you need to run a command if there is no match.
The "jwm" string is one of those expressions. If "jwm" is listed after "wm: " in /home/dsl/.desktop, those commands following it will be run and jwm will be started as the window manager.
The line gqview -s -f /home/dsl/pics &&
It's not a typo, i tested on qemu first. It(&&) serves the same purpose as not having nothing there but is not suppose to hault the start up. Can also use \ instead, but that didn't seem to work as well. I found the use of (&&) through lots of reading.
Milkshaw, were almost there, but i need a command to minimize the window that can be used in /.xinitrc or with /.torsmorc's exec feature. I've been looking at torsmo to run the command instead as it can run as if it were in terminal(shell command). I can't seem to find the command to minimize windows(gqview main window). Any ideas?
Next Page...
original here.