Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 2 3 4 [5] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Using .xinitrc to launch programs at startup, Handling windows through cli maybe?< Next Oldest | Next Newest >
arkroan Offline





Group: Members
Posts: 10
Joined: June 2006
Posted: June 14 2006,12:13 QUOTE

kerry and mikshaw i think you have spend too much time to it. It is not worth it.
I really apreciate you help and all the effort. But since Gqview doesn't cooperate, I would propably use another application to do the job.

I will have a go with the settings in your .xinitrc mikshaw (although I do not like jmw).

Thank you again for all the effort and time you have spent on my query.

I will post when I will have this up and running. For the time being i am occupied with some exams. (university student see)

You have been very helpfull and i really appreciate it.
:)
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 14 2006,14:14 QUOTE

I have something that seems to work with fluxbox and with icons, although it's not 100% reliable.  It seems that gqview or fluxbox (not sure if it's one or both to blame) is VERY sensitive to other applications opening at the same time, and the result seems to be that gqview gets confused about what it's supposed to do.  And it is not entrely consistent about it. Gqview also has trouble when other applications open after it, and configuring fluxbox to not focus new windows doesn't seem to be a useful alternative.  Mainly I think GQview is the main issue, though, considering that there seems to be no logical reason for it to open its main window regardless of what's happening around it.
I don't know anything about how X events work, so i could only play around with different things until something seemed to work.  And this seems to work on my machine....
Code Sample
 fluxbox )
   wmswallow -geometry 70x80 docked  docked.lua &
   fluxter &>/dev/null &
   fluxbox 2>/dev/null &
   fluxpid=$!
   sleep 1
   /opt/gqview-1.2.2/gqview -f -s /mnt/hda3/home/mik/image/computer/ &
   wait $fluxpid
 ;;

Everything else in .xinitrc is the same as in vanilla dsl 2.4, except i also commented out dillo.

Depending on your processor speed, you may need to increase the sleep time if you're still getting the window popping up.  Also note that I moved wmswallow to the top of the list to give it more time to initialize (it seems to take a bit longer than the other apps).


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
arkroan Offline





Group: Members
Posts: 10
Joined: June 2006
Posted: June 15 2006,11:16 QUOTE

This does not work mikshaw. It boots up the Fluxbox, loads everything else and stops there. It doesn not load the Gqview.

What does fluxpid=$ do?
$ is a pointer right??. Pid is the process id number. So i am imaging that you tell it to wait until a process (fluxbox?) completeley loads?
Why did you use the wait $fluxpid after the GQview command?

I tried to install Feh but it gives me an error : no acceptable c compiler found in $path. i know that there the TCC compiler but it doesn't look for that at all. How can I point the "./configure" command to look for the tiny c ?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 15 2006,14:23 QUOTE

The "$" in Bash signifies that the following string should be interpreted as a variable, and in Bash, "$!" is an internal variable that represents the pid of the last job run in the background (in this case, fluxbox &).

Since gqview was being annoying when it was not the very last program to run, I had to background everything, including fluxbox.  If gqview was not backgrounded as well, the x session would be terminated as soon as you close gqview...there are no more commands to run, so .xinitrc closes, taking X with it.  In order to keep the session going, the .xinitrc script must wait for something to happen, or continue running commands.
The wait $fluxpid command is put there so that the script will wait for fluxbox to be terminated before closing itself.


Usually configure scripts will include a variable "CC", which is often set to "gcc".  You might try changing it to "tcc".  I wouldn't get your hopes up that you'll be able to compile feh with a base DSL system, though.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
23 replies since June 12 2006,15:06 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 2 3 4 [5] >/
reply to topic new topic new poll
Quick Reply: Using .xinitrc to launch programs at startup

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code