.fluxbox/slitlist gets overwritten! ?!


Forum: X and Fluxbox
Topic: .fluxbox/slitlist gets overwritten! ?!
started by: davew

Posted by davew on Jan. 26 2006,01:16
I am regularly remastering my dsl.  Works great for me in every way, I'm so satisfied, kudos to the developers!  I have one nagging issue:

My /home/dsl directory is initially empty, and it gets automatically repopulated with the contents of /etc/skel.  This works fine, except ONE FILE doesn't get properly repopulated:  /home/dsl/.fluxbox/slitlist.  Every time I boot, I get the default slit with six items (wmnetwork, wmcpuload, asmem, dmix, and mount).  My /etc/skel/.fluxbox/slitlist only has three items, but my /home/dsl/.fluxbox/slitlist gets all six items in it!

I tried editing /home/dsl/.fluxbox/slitlist, saving it, changing it to read-only, changing /home/dsl/.fluxbox to read-only, then exiting the desktop.  At the text-mode prompt, I verify that /home/dsl/.fluxbox/slitlist is still my edited version.  Then I exit the text-mode prompt, which runs the desktop again -- and voila!  My slit is back to the default!  I check the slitlist file and it is back to the default six items.

It seems that the /home/dsl/.fluxbox/slitlist file is somehow  getting overwritten by fluxbox itself when the desktop is brought up.

How can I force the desktop to obey my slitlist?

Dave

Posted by mikshaw on Jan. 26 2006,03:03
What do you want it to do?  In fluxbox stable, the only purpose of the slitlist is to show the order in which the apps are arranged.  If you're looking for a way to control which apps are being loaded, look in /home/dsl/.xinitrc
Posted by davew on Jan. 26 2006,19:46
Hmmm.... This is all I have in my .xinitrc:

Code Sample

# put X windows programs that you want started here.
# Be sure to add at the end of each command the &
if egrep -qv noicons /proc/cmdline 2>/dev/null; then
 enhance &>/dev/null &
fi
#dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &
fluxbox 2>/dev/null

I can't see where in this the slit is getting populated.  That's why I thought it must be in slitlist.

Dave

Posted by mikshaw on Jan. 26 2006,20:20
Well, then...you have what I would call an "old" version of DSL, unless you carried your .xinitrc file over from an older installation. I think enhance was removed from .xinitrc somewhere between 1.5 and 2.0

In this case, the "enhance" script (/usr/bin/enhance) is what controls which dockapps are being started.  You can either edit this script, or replace the enhance command in .xinitrc with the apps you want to load.

Posted by davew on Jan. 27 2006,02:22
That did it!  Thanks!!  :laugh:
Posted by Mr. Duck-Jibe on Mar. 28 2006,22:11
Hello,

I want to remove dmix from the slit, since my DSL-Box doesn't have a soundcard...

I'm using DSL 2.2 & can't find an entry concerning dmix in neither /usr/bin/enhance nor .xinitrc
(only things like 'system("docked.lua &>/dev/null &" );'

Also, even as root, enhance stays RO...

Hang Loose,
Mr. Duck-Jibe

Posted by mikshaw on Mar. 28 2006,23:01
docked.lua is the one you want.  It's a separate script from dmix
Posted by Mr. Duck-Jibe on Mar. 29 2006,10:07
should I edit /usr/local/bin/docked.lua , /KNOPPIX/usr/local/bin/docked.lua or /ramdisk/usr/local/bin/docked.lua?

all files stay RO (read only), even as root (as does /usr/bin/enhance)

how can I edit those files?

Posted by mikshaw on Mar. 29 2006,16:31
If you want to stop it from loading, edit /home/dsl/.xinitrc.  I believe it's just one line that needs to be commented or removed.
Posted by Mr. Duck-Jibe on Mar. 29 2006,17:05
mikshaw, thank you very much for your help & patience, but I'm still not getting there...

If I comment the "docked.lua &" line in .xinitrc , slit won't appear at all

I looked into the docked.lua - also the mount-button in slit is defined here

Code Sample
dofile("/etc/init.d/mount_common.lua")
.
.
mount_down = Button{....}
.
.
mount_me = Button{....}
.
.

...and I'd like to keep the mount button

I also found the definitions of the mixer:

Code Sample
execute("umix vol 50")
.
.
vol = Value_Slider{...}
.
.
dmix = Button{...}
.
.


THESE are the lines I'd like to edit / comment - but I'm not succeeding into turning the file writable...

Mr. Duck-Jibe

Posted by mikshaw on Mar. 29 2006,19:03
If there are no apps loaded into the slit, it will remain hidden (it's still there).  The dmix and mount in the slit are a single script, as i recall, so you'll need to edit the script itself if you want only the mounter.  I guess you knew that =o).

If you copy the docked.lua script to a writeable location, such as your home, you can edit it and then change "docked.lua" in .xinitrc to the full path of your copied script.  I don't have DSL running at the moment, so i can't say what exactly will need to be changed in the lua script. It looks like you probably already have that figured out, though.  If you haven't gotten it working soon I'll go check it out.

Posted by Mr. Duck-Jibe on Mar. 29 2006,20:38
Ah, now I see - it was the location that made the file RO...

OK - now it's experimenting time ;-)

Thanx again, mikshaw

Mr. Duck-Jibe

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.