Kaboom

View: New views
5 Messages — Rating Filter:   Alert me  

Kaboom

by Diederik de Haas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm trying to create my own Debian Live KDE image and try to resolve an issue wrt Kaboom.
When the LiveCD starts up (testing with VirtualBox) a user 'live' gets created and that creates a
sudo related file, which triggers Kaboom to run when KDE starts up.
And that happens every time the LiveCD is started and is of course not what I want.

This is the script part that creates that file:

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

Why does kaboom think that I'm migrating from kde3 and how can I prevent that (since it's a new
install straight from sid)?
Why does kdebase-workspace-bin depend on kaboom and not recommend/suggest it?

Regards,
  Diederik


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Kaboom

by George Kiagiadakis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Oct 25, 2009 at 8:33 PM, Diederik de Haas <didi.debian@...> wrote:

> Hello,
>
> I'm trying to create my own Debian Live KDE image and try to resolve an issue wrt Kaboom.
> When the LiveCD starts up (testing with VirtualBox) a user 'live' gets created and that creates a
> sudo related file, which triggers Kaboom to run when KDE starts up.
> And that happens every time the LiveCD is started and is of course not what I want.
>
> This is the script part that creates that file:
>
> 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
>
> Why does kaboom think that I'm migrating from kde3 and how can I prevent that (since it's a new
> install straight from sid)?

It thinks that you are migrating because ~/.kde exists and
~/.local/kaboom doesn't. You can adjust this script to also call the
command "mkdir -p ~/.local && touch ~/.local/kaboom" to prevent kaboom
from starting.

Regards,
George


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Kaboom

by Diederik de Haas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On 2009-10-25 George Kiagiadakis wrote:
> It thinks that you are migrating because ~/.kde exists and
> ~/.local/kaboom doesn't. You can adjust this script to also call the
> command "mkdir -p ~/.local && touch ~/.local/kaboom" to prevent kaboom
> from starting.
>
I've added those statements, so the script part is now:
chroot /root sudo -u "${USERNAME}" sh -c "umask 0077 && mkdir -p /home/${USERNAME/.local && touch
/home/${USERNAME/.local/kaboom && mkdir -p /home/${USERNAME}/.kde/share/config
&& cat > /home/${USERNAME}/.kde/share/config/kdesurc" << EOF
[super-user-command]
super-user-command=sudo
EOF

But when I start the resulting LiveCD, Kaboom is still triggered.
I do see the ~/.local/kaboom file with size 0 bytes, so it does get created, but doesn't stop Kaboom.

Did I do sth wrong or forget sth? Any other suggestions?
Btw, would adding it to /etc/skel have the same effect?

Regards,
  Diederik


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Kaboom

by George Kiagiadakis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Oct 25, 2009 at 9:36 PM, Diederik de Haas <didi.debian@...> wrote:

> Hi,
>
> On 2009-10-25 George Kiagiadakis wrote:
>> It thinks that you are migrating because ~/.kde exists and
>> ~/.local/kaboom doesn't. You can adjust this script to also call the
>> command "mkdir -p ~/.local && touch ~/.local/kaboom" to prevent kaboom
>> from starting.
>>
> I've added those statements, so the script part is now:
> chroot /root sudo -u "${USERNAME}" sh -c "umask 0077 && mkdir -p /home/${USERNAME/.local && touch
> /home/${USERNAME/.local/kaboom && mkdir -p /home/${USERNAME}/.kde/share/config
> && cat > /home/${USERNAME}/.kde/share/config/kdesurc" << EOF
> [super-user-command]
> super-user-command=sudo
> EOF
>
> But when I start the resulting LiveCD, Kaboom is still triggered.
> I do see the ~/.local/kaboom file with size 0 bytes, so it does get created, but doesn't stop Kaboom.

That *should* stop it... Maybe you are doing something wrong? The code
in startkde that starts kaboom checks for this file:

==========
if [ ! -f $HOME/.local/kaboom ]
then
        kaboom -style plastique
        RET=$?
        if [ "$RET" != "0" ]
        then
                exit $RET
        fi
fi
==========


> Did I do sth wrong or forget sth? Any other suggestions?

There is one other thing you can try: divert kaboom. I have used it in
the past on some machines that I wanted to disable kaboom completely.
I have a script here that can do all the work for you:

http://www.csd.uoc.gr/~gkiagiad/divert-kaboom.sh


> Btw, would adding it to /etc/skel have the same effect?

I guess adding it to skel would also work.

Regards,
George


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Kaboom

by Diederik de Haas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009-10-25 George Kiagiadakis wrote:
> > Btw, would adding it to /etc/skel have the same effect?
>
> I guess adding it to skel would also work.
And that had the desired effect :-)

I will do some other/more tests to figure out why the other method didn't do it, but I have what I
want now (and it's easier for me to do).
> Regards,
> George
Thanks a lot for you help!

Regards,
  Diederik


--
To UNSUBSCRIBE, email to debian-kde-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...