Posts: 51
swiftlinuxcreator
Joined: 15 Nov 2010
#1
I'm working on modifications of the installer script for Swift Linux. I've figured out how to make most of the changes I want to make. But there's one I'm still confused on.

How do I make SLiM pre-disable the options to boot up Fluxbox, WMII, and other window managers? I tried making the changes in /etc/slim.conf and /usr/share/slim/slim.template, but some mysterious force in the installation process or something specific to the remastering process overrides my settings.
Posts: 1,062
Dave
Joined: 20 Jan 2010
#2
Ok, noticed that you had made a thread for the issue. To recap with the chat,

The files that will need to be changed / looked into are:
/etc/slim.conf
/usr/share/slim/slim.template
/etc/skel/.xinitrc
/etc/init.d/antiX-init.sh (line 724 and below)
/usr/share/slim/themes/antiX/slim-install.conf
/usr/local/bin/user-management ( lines 507, 533, 602, 628 ) ( This is only for use by user, does not change install or remaster processes, will be fixed in the future )

It may need more looking into by the way, as I am still not sure how"demo" autologin works ( i have only done a quick look ). So there may indeed be more files that will need a change. Main dir's to check /etc, /usr/share, /usr/share/anti*, and */lib/*
Posts: 51
swiftlinuxcreator
Joined: 15 Nov 2010
#3
Dave wrote:Ok, noticed that you had made a thread for the issue. To recap with the chat,

The files that will need to be changed / looked into are:
/etc/slim.conf
/usr/share/slim/slim.template
/etc/skel/.xinitrc
/etc/init.d/antiX-init.sh (line 724 and below)
/usr/share/slim/themes/antiX/slim-install.conf
/usr/local/bin/user-management ( lines 507, 533, 602, 628 ) ( This is only for use by user, does not change install or remaster processes, will be fixed in the future )

It may need more looking into by the way, as I am still not sure how"demo" autologin works ( i have only done a quick look ). So there may indeed be more files that will need a change. Main dir's to check /etc, /usr/share, /usr/share/anti*, and */lib/*
I have confirmed that the /etc/slim.conf is the critical file. When I trim the extra available sessions (fluxbox, wmii, gnome, kde, openbox, etc.), these options are (as expected) gone when I log out and end up back in SLiM.

When I remaster antiX Linux WITH the modified /etc/slim.conf file, the changes carry over into the live CD. When I'm in the live CD and log out and end up in SLiM, my changes are preserved.

However, once I install Swift Linux (antiX Linux with my modifications), the changes I made to the /etc/slim.conf file are mysteriously lost, and the extra sessions show up in SLiM.

Taking the extra sessions out of both user-management files (the one in /usr/local/bin AND the one in the localisation directory) did NOT work. You'd think that this was the file overwriting the /etc/slim.conf file, but that's not the case. So I've eliminated this file as the culprit, as the unwanted overwriting took place without the help of the user-management files.

From doing a search for the text"Rox-fluxbox", the only thing I can see as a possible culprit is the /usr/share/slim/themes/antiX/slim-install.conf file that shows up in the remastering process. I'll have to try modifying this file in the remastering process to see if this resolves the issue. If it doesn't, I'm hard-pressed to think of what else could be wiping out my changes to the /etc/slim.conf file.
Posts: 51
swiftlinuxcreator
Joined: 15 Nov 2010
#4
Indeed it is the /usr/share/slim/themes/antiX/slim-install.conf file that proved to be the critical one. Thanks for the suggestions, Dave.