Code: Select all
NEW: sessionstart
NAME: sessionstart
CMD: /home/username/.enlightenment/sessionstartCode: Select all
#!/bin/bash
numlockx
rox --pinboard=Enlightenment &
trayer --edge top --align right --margin 75 --transparent true --alpha 255 --expand true --align right --widthtype request --heighttype request --distance 16 &
xscreensaver -no-splash &
tomboy &
gkrellm2 &yea mattering to what all you said you needed i was going to suggest basicly the same thing, what i would do is set dr16 to remember and to restart a *term log out of enlightenment, log into console mode and edit the snapshots file adding "-e path/to/script, were script is a simple bash script calling the services and backgrounding them if need. That will have the *term open as long as the called script is running.hmm.. very hackish, but maybe I should just make a named xterm which forks all my scripts and closes itself, and Remeber it...

Well, because it doesn't work, for a couple reasons.bluedevils wrote:I'm confused. Why wouldn't you just start scripts in .xinitrc?

Example A-1. .xinitrcAs an alternative, you could start up your window manager first, and store the process ID in a environment variable:
wmaker & wmpid=$!
that puts it in the background (&) and puts the process id ($!) in a variable (wmpid). Then, to make your hang point, you can wait:
wait $wmpid
or you could hang on a program you always want to use, like maybe gkrellm, by just not backgrounding it. But remember that as soon as you terminate it, so will your X11 session.
Now, I use the wait method, because I like picking my window manager before I launch my dockapps and stuff. Also, before doing anything else, I like to change the settings on my X11 server, like the dpms, the screen saver, and even add some directories to my font path (fonts I don't want to install universally). And then after everything is done, I like to clean up my fontpath, mainly because if I ran a display manager, its not good at resetting the font path all the time.

after I failed with .xinitrc I tried your approach:kastorff wrote:There's a file that ends with .snapshots.0 (at least mine does) in your ~/.enlightenment directory. Add something similar to this at the end:My sessionstart is an executable text file that looks like this:Code: Select all
NEW: sessionstart NAME: sessionstart CMD: /home/username/.enlightenment/sessionstartOf course you can put just about anything you want there. And there's nothing special about the name "sessionstart", you could use whatever you liked. And as noted above, I'd edit all this without Enlightenment DR16 running...Code: Select all
#!/bin/bash numlockx rox --pinboard=Enlightenment & trayer --edge top --align right --margin 75 --transparent true --alpha 255 --expand true --align right --widthtype request --heighttype request --distance 16 & xscreensaver -no-splash & tomboy & gkrellm2 &
Code: Select all
.e16/sessionstart:
#!/bin/bash
conky -x 900 -y 10 -u 3 -b &
.e16/e_config--0.0.snapshots:
(...)
NEW: sessionstart
NAME: sessionstart
CMD: /root/.e16/sessionstart
(...)You're putting the script in the root user's home directory? I hope you aren't logging in as root. Put it in the user's home directory (/home/username/somewhere/sessionstart). I know nothing about conky, so there could be errors in the line you have there, if you are logging in as root. Also be sure sessionstart is executable.bytenirvana wrote:after I failed with .xinitrc I tried your approach:Code: Select all
.e16/sessionstart: #!/bin/bash conky -x 900 -y 10 -u 3 -b & .e16/e_config--0.0.snapshots: (...) NEW: sessionstart NAME: sessionstart CMD: /root/.e16/sessionstart (...)
but after each login I get only a window with a message like "there is a error in this program..." (or something like this) with the path to the sessionstart file.

yes. I'm logged in as root the whole time. I can't emerge programs as normal user (yet). the conky line is perfectly right, it worked in fluxbox and it works from the cli.kastorff wrote: You're putting the script in the root user's home directory? I hope you aren't logging in as root. Put it in the user's home directory (/home/username/somewhere/sessionstart). I know nothing about conky, so there could be errors in the line you have there, if you are logging in as root. Also be sure sessionstart is executable.
Right-click, and check the permissions...execute is one of them.bytenirvana wrote:yes. I'm logged in as root the whole time. I can't emerge programs as normal user (yet). the conky line is perfectly right, it worked in fluxbox and it works from the cli.
how can I make the file executable?

Not sure about conky...seems like i had to make gKrellm show a standard window border to set the option in e16, and then I could turn it off and it would work. I'm in KDE at the moment, so I can't look for the precise option in e16, but play around with the menus...it's there. I think it's the center-click menu...bytenirvana wrote:yes - I changed it now and it works.
curiously after a restart conky changes the desktop. can I tell it somehow on which desktop it has to appear?