mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Aug. 30 2004,22:32 |
|
The sed line became a little more complex than I had originally wanted. At first I just had it replacing the last line of ~/.xinitrc regardless of what is there. Unfortunately, this doesn't account for blank lines or comments at the end of the file, so it turned out to be: 1) Remove all blank lines, as well as spaces and tabs at the beginning of lines. 2) Remove lines beginning with # (begining spaces and tabs were removed so this could be done). 3) Remove last line. 4) Add a new line.
Keep in mind that this doesn't affect the original .xinitrc...only the copy. In the current menu item, only a line containing "fluxbox" is grepped, but this doesn't deal with an xinitrc which has been edited to start a different window manager. It also edits the original .xinitrc, which I'm trying to avoid.
sorry about hijacking the thread...I was only responding to posts, really
edit: The comments were added for this thread...they're not in the packaged script.
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|