On Sat, 24 Mar 2007 21:49:47 -0300 Ben Armstrong <[EMAIL PROTECTED]> wrote: > Ah. It will need some adjustment. It creates /.kde not /home/user/.kde > > I'll do more testing with kde tomorrow and post a correct patch.
OK. I have attached a revised patch. This not only fixes the location of ~/.kde, but adds under ~/.kde revised su.desktop and sumc.desktop files for konsole (by sedding the originals if they are present in the chroot) so that when you open a root shell or root midnight commander shell it will do so with sudo instead of su. The downside to this approach is if the livecd doesn't include konsole and the user installs it afterwards, the root shells won't work. I can't see any easy way to fix this. Marco, this is for you: the casper.log from my last test run against your casper bzr branch including my patch is at: http://people.debian.org/~synrg/casper.log Ben -- ,-. nSLUG http://www.nslug.ns.ca [EMAIL PROTECTED] \`' Debian http://www.debian.org [EMAIL PROTECTED] ` [ gpg 395C F3A4 35D3 D247 1387 2D9E 5A94 F3CA 0B27 13C8 ] [ pgp 7F DA 09 4B BA 2C 0D E0 1B B1 31 ED C6 A9 39 4F ]
=== modified file 'scripts/casper-bottom/10adduser' --- scripts/casper-bottom/10adduser 2007-02-13 17:28:03 +0000 +++ scripts/casper-bottom/10adduser 2007-03-25 22:58:57 +0000 @@ -65,6 +65,18 @@ done else # We are in debian :-) echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> /root/etc/sudoers + chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/gksu/sudo-mode true + chroot /root sudo -u "$USERNAME" gconftool-2 -s -t bool /apps/gksu/display-no-pass-info false + chroot /root sudo -u "$USERNAME" sh -c "umask 0077 && mkdir -p /home/$USERNAME/.kde/share/config && cat >/home/$USERNAME/.kde/share/config/kdesurc" <<EOF +[super-user-command] +super-user-command=sudo +EOF + if [ -f /root/usr/share/apps/konsole/sumc.desktop ]; then + chroot /root sudo -u "$USERNAME" sh -c "umask 0077 && mkdir -p /home/$USERNAME/.kde/share/apps/konsole && sed -e's/Exec=su.*$/Exec=sudo mc -c/' /usr/share/apps/konsole/sumc.desktop >/home/$USERNAME/.kde/share/apps/konsole/sumc.desktop" + fi + if [ -f /root/usr/share/apps/konsole/su.desktop ]; then + chroot /root sudo -u "$USERNAME" sh -c "umask 0077 && mkdir -p /home/$USERNAME/.kde/share/apps/konsole && sed -e's/Exec=su.*$/Exec=sudo -i/' /usr/share/apps/konsole/su.desktop >/home/$USERNAME/.kde/share/apps/konsole/su.desktop" + fi fi fi
_______________________________________________ Debian-live-devel mailing list Debian-live-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel