PDA

View Full Version : Multiple shortcuts on multiple desktops in Knoppix 4.0.2



Dredman
04-13-2006, 11:33 AM
Hi
I've started remastering knoppix 4.0.2 and my question is: is it any possibility to have multiple icons, shortcuts on every desktop what i mean is, lets say that i've got 4 desktops on my knoppix every desktop has it's own wallpaper and shortcuts (i've checked this with other wallpaper on every desktop and it works but after remastering the default wallpaper is on every desktop :( )
EXAmple with shortcuts:
1 desktop : mounted hard drives
2 desktop: net comunicators ( gaim , xchat)
3 desktop: xine , xmms
4 desktop: web browsers

Thx 4 Help Mates
Regards

tr
04-14-2006, 08:47 AM
(i've checked this with other wallpaper on every desktop and it works but after remastering the default wallpaper is on every desktop :( )

I don't know the answer but perhaps I can give you some idead what to look for. The default background in live CD is /cdrom/KNOPPIX/background.* and /etc/init.d/knoppix-autoconfig is the file to modify. This is how my background section (sligtly modified) looks out:

# Search for custom background image for KDE/GNOME/X
for i in /cdrom/KNOPPIX/background /usr/share/wallpapers/knoppix; do
for j in jpg png gif svgz; do
BACKGROUND="$i.$j"
[ -e "$BACKGROUND" ] && break 2
done
done

The thing to do is hack that section. Somehow you should tell Knoppix to use only your own backgrounds and not the default /cdrom/KNOPPIX/background.*.

To make things little more compicated in chroot state your bacground image is carried from /etc/X11/Xsession.d/45xsession e.g.:

for i in jpg png gif svgz; do
BACKGROUND=/usr/local/lib/knoppix.$i
[ -e "$BACKGROUND" ] && break
done

There's also an other file in newer Knoppix releases (and e.g. in Kanotix) that has something to do with background and it is /etc/default/distro. This is what I have there:

# where is the default X wallpaper located
FLL_WALLPAPER="/usr/share/wallpapers/knoppix.jpg"


And in $HOME/.kde/share/config/kdesktoprc I have following:


[Desktop0]
BackgroundMode=VerticalGradient
BlendBalance=-14
BlendMode=NoBlending
ChangeInterval=60
Color1=30,114,160
Color2=192,192,192
CurrentWallpaper=0
LastChange=964531384
MinOptimizationDepth=1
MultiWallpaperMode=NoMulti
Pattern=
Program=
ReverseBlending=false
UseSHM=false
Wallpaper=/usr/share/wallpapers/default_blue.jpg
WallpaperList=
WallpaperMode=Scaled


Perhpaps defining more Desktop would help but in cdrom it seems not to works - ask you noticed also yourself.

One thing more. If you start your Knoppix from CD and try to change your background image in an other desktop in KDE, you get only that /cdrom/KNOPPIX/background.* image available (that being the default directory and image). So he default directory to choose wallpapers must be defined beforehand before remastering) somewhere so that you get a list of all wallpapers


-tapsa-

Dredman
10-07-2006, 10:42 PM
I've got it but not realy what i want but ther's no problem with another wallpaper on each desktop :)
All i gotta do was edit file /etc/X11/Xsession.d/45xsession and comment lines 215, 216, 217 with #


#sed -e 's|Wallpaper=.*$|Wallpaper='"$BACKGROUND"'|g' \
# $HOME/.kde/share/config/kdesktoprc > $HOME/.kde/share/config/kdesktoprc.tmp
#\mv -f $HOME/.kde/share/config/kdesktoprc.tmp $HOME/.kde/share/config/kdesktoprc

and after this we've got another wallpaper on every desktop
so enjoy mates :)