KDE Related Problems

Recently a new mailing list has been created by SuSE which KDE desktop and it's related problems are discussed. By joining that mailinglist you may find answers to your questions. To subscribe send an empty mail to

1. Konqueror says can't handle text/html type while using SuSE help center. What's wrong ?
2. How do I start up an application evrytime the PC is booted into KDE ?
3. After upgrading to KDE3 KDM is unable to start KDE. How can I fix it ?
4. After upgrading to KDE 3.03 no background in KDM
5. How can I have the Numlock turned on when KDE starts ?
6. How can I install another splash screen to KDE ?
7. How can I autoboot to selected user ?
8. How can I change the Login screen background ?
9. How can I change the KDM backround for KDE3 under SuSE7.3 ?
10. How can I set the KDE Defaults for the new users ?
11. How to compile KDE from CVS ?
12. KDE applications manual pages do not show after KDE3.03 upgrade
13. Which file include the KDE's global configurations ?
14. How to stop Nautilus drawing the desktop ?

1. Konqueror says can't handle text/html type while using SuSE help center. What's wrong ?

The help centre was broken in 7.2 for people who upgraded their KDE to 2.2.x (from the original 2.1.2 in 7.2).

The solution is simple...get the susehelpcenter rpm for *7.3* from SuSE's site (or use a mirror!). It's in series k2de1.

Upgrade it with rpm -U or Yast and you will find that the help centre works.

2. How do I start up an application evrytime the PC is booted into KDE ?

Jon Klaussen

For which purpose the nice people at KDE provide us with... the "Autostart Folder"... ;)

Look in .kde2/ in your homedir... And check this out: http://www.kde.org/documentation/userguide/all-about-your-desktop.html#THE-AUTOSTART-FOLDER

3. After upgrading to KDE3 KDM is unable to start KDE. How can I fix it ?

Applies to SuSE 7.3

To fix it:

  • mkdir /opt/kde3/share/config/kdm
    ln -s /etc/opt/kde3/share/config/kdm/kdmrc /opt/kde3/share/config/kdm/kdmrc
    ln -s /etc/X11/xdm/Xaccess /opt/kde3/share/config/kdm/Xaccess
          
  • edit the files in /etc/SuSEconfig and change: qt2 qt3 and kde2 kde3

  • edit /etc/init.d/xdm, change: kde2kde3

  • Add kde3 to /usr/X11R6/bin/wmlist

  • Add kde3 to the sessionlist in /etc/opt/kde3/share/config/kdm/kdmrc

  • Add kde3 to /etc/ld.so.conf

  • run ldconfig

  • run rcxdm start

4. After upgrading to KDE 3.03 no background in KDM

Szabó László

That is because of the missing path from qt plugin configuration. If check qtconfig Library Paths settings, You will see all previously installed qt plugin paths in the list, but not the current (3.0.5). If you add the correct plugin path (/usr/lib/qt-3.0.5/plugins) you will see jpeg images in file preview or kview etc.. again.

You may have to restart KDE once you make the changes in QTconfig. Just open a shell/console window and type qtconfig and it will open up! Go to the Library Paths tab and add the new path to qt 3.0.5 plugins! That will take care of all your jpeg problems in the main KDE screens, but your login background will still have to be a png for now as it does not affect that one.

Note

Graham Murray

I have found what I did wrong. I thought that qtconfig was global so ran sux first and made the changes as root. When I ran qtconfig as my normal user and restarted kde, jpegs worked again.

5. How can I have the Numlock turned on when KDE starts ?

Go toPreferences+Peripherals->Keyboard and select the Turn on radio button in NumLock on KDE startup under the Advanced tab.

6. How can I install another splash screen to KDE ?

  • Open konqueror

  • Create the directory ~/.kde/share/apps/ksplash/pics

  • Browse to ~/.kde/share/apps/ksplash/pics

  • Move and uncompress your new splash screen file into the konqueror window

7. How can I autoboot to selected user ?

Preferences-> System->Login Manager

8. How can I change the Login screen background ?

Preferences-> System->Login Manager

9. How can I change the KDM backround for KDE3 under SuSE7.3 ?

If you use kde3 and /opt/kde3/bin/kdm as login-manager and always get an ugly grey xdm-ish background make sure you have the following lines in /etc/X11/xdm/Xsetup


kde3root=/opt/kde3/bin					#Somewhere near line 52

for p in ${kde1root}/kdm \				#Starting cirka line 62
             ${kde2root}/kdm \
              ${kde3root}/kdm
      do
    

10. How can I set the KDE Defaults for the new users ?

To change the menu for all users you have to modify the general kde menu that is in /opt/kde3/share/applnk. If you want to add a new icon that is not present there, you have to create a new .desktop file and you may specify the following fields:

[Desktop Entry]
Encoding=UTF-8 
Name=                           #name of the application in menu
GenericName[i18n]=              #text within brackets in menu, i18n is the code of the    		          
                                # language you're using, [en] I suppose... :-)
Exec=			        #name of the application o execute, you can specify full path
Icon=				#name of the icon of the applicatio, you can specify full path. !! If
				#you don't put anything here you're entry won't be displayed in the menu
Type=Application
Terminal=0			#whether the application has to be executed in a console. 0 for 	
				#none
       

To add a new menu or submenu, simply create a new folder and assign it an icon you like. For the folder to be displayed you must at least put a .desktop file in it.

The /opt/kde3/share/applnk is merged with the personal user-kde directory to generate the menu for each user. If the ~/.kde/share/applnk doesn't contain any entry, the whole /opt/kde3/share/applnk menu will be displayed. If it contains different entryes, this ones will be displayed next to the ones of the general kde menu. If it contains an entry that is in the same folder or subfolder of the general menu and has the same name, the entry won't be displayed in the menu.

For exemple, if you have:
	/opt/kde3/share/applnk/Applications/[empy] 
      
and
	~/.kde/share/applnk/Applications/xmms.desktop
      
The xmms entry will be displayed in the folder Applications of the Kmenu but if you have:
	/opt/kde3/share/applnk/Applications/xmms.desktop
      
and
	~/.kde/share/applnk/Applications/xmms.desktop
      
The xmms entry won't appear in the menu.

Note

I did this by eliminating the Suse menu and using the Kmenu, if you want to use the Suse menu you'll have to change the enries in the Suse menu. I've uninstalled it and now I can't remember where it was stored but if you can find it, things works the same as for the Kmenu.

Respect to the icons on the desktop, I don't know hot to add new ones. There's a script in /opt/kde3/bin/startkde written for suse that substitute the original /opt/kde3/bin/startkde.original that do the job of creating the new desktop icons when a user login for the first time. But as I don't know very well bash script programming I decided to create my own icons manually and I uninstalled the suse theme. This way only a Trash icon is created on the desktop. If you know bash programming I think it wouldn't be difficult to understand the suse script and change it to create your own desktop icons.

11. How to compile KDE from CVS ?

Anders Johansson

On request, a little mini-howto on how to compile kde from cvs

It's probably a good idea to do all this in one terminal window. If you set an environment variable in one konsole window, that variable will not be set in another window, so stay in one window when you do this.

First of all, make sure you have cvs installed. It is on SuSE's CDs. You also need gcc, gpp, automake, autoconf and yacc. I can't list here everything you need exactly. If you install the "development" setup in yast, you should get most, if not all of it. I never worry too much about that, because the compilation scripts will complain if you lack a certain package you need. Just install it as you go along.

  1. Check out the code from cvs

    1. You need to tell cvs which server to download from, and you need to log in to it.
      export CVSROOT=:pserver:anonymous@anoncvs.kde.org:/home/kde cvs login
      	  

    2. There is no password, so just hit enter when it asks you.

    3. You only need to login once. If you decide to update your code in two weeks you only need to do the "export", not the "login" then.

    4. make a directory where you put the source. I keep mine in /home/andjoh/src/kde-3.1. Then "cd" to that directory (in my case, "cd /home/andjoh/src/kde-3.1")

    5. Now download what you want to compile. You need the base bits, the rest is "if you feel like it".

    6. 	    cvs co qt-copy
      	    
      to get an up-to-date version of qt.
      cvs co arts
      cvs co kdelibs
      cvs co kdebase
      	      

    7. Those three are needed. Then you can download "kdenetwork", "kdemultimedia", "kdegraphics", "kdegames", "kdeartwork", "kdeutils" "kdeaddons" and "kdeextragear-1" if you want them. But only the first three + qt-copy are actually needed to run kde.

  2. Compile qt-copy

    1. You can find this info in the file README.qt-copy
      cd qt-copy
      export QTDIR=$PWD
      make -f Makefile.cvs
      ./configure -system-zlib -qt-gif -system-libpng -system-libjpeg \
        -plugin-imgfmt-mng -thread -no-stl -no-g++-exceptions
      make symlinks sub-src sub-tools
      	      
      This will run for some time.

  3. Compile kde

    1. First you need to decide where you're going to store the compiled binaries. I keep them in my home directory, in /home/andjoh/kde3.1
      export KDEDIR=/home/andjoh/kde3.1
      
      cd arts
      make -f Makefile.cvs
      ./configure
      make
      make install
      	      
      This is the magic sequence for compiling all the packages in kde. Simple, no? :)
      cd kdelibs
      make -f Makefile.cvs
      ./configure
      make
      make install
      
      cd kdebase
      make -f Makefile.cvs
      ./configure
      make
      make install
      	      
      Those four packages should be handled in that order. The procedure is exactly the same for the rest of the packages you decided to download. You can do them in any order, except that kdeaddons should be done last of all.

    2. Now, to use this, put these lines in your ~/.bashrc
      export KDEDIR=~/kde3.1
      export QTDIR=~/src/kde3.1/qt-copy
      export WINDOWMANAGER=~/kde3.1/bin/startkde
      export PATH=$KDEDIR/bin:$PATH
      export LD_LIBRARY_PATH=$KDEDIR/lib:$QTDIR/lib:$LD_LIBRARY_PATH
      export KDEHOME=~/.kde31-test
      	      

    3. Log out and back in and you should see the brand new kde3.1 start up and your old kde 3.0.x settings won't be affected. Comment out those lines in .bashrc to get back to the old kde.

      Note

      with those lines in .bashrc, kde3.1 will start up regardless of what you select from kdm. This isn't really a "nice" solution, but it was the first one I could think of :) If anyone has a better idea of how to do this in a more "SuSE" manner, please speak up :)

12. KDE applications manual pages do not show after KDE3.03 upgrade

Copy /opt/kde3/share/applnk/Help.desktop to /opt/kde3/share/services and name it khelpcenter.desktop. Then edit it in a text editor and change
Exec=khelpcenter
      
to
Exec=khelpcenter %u
      
and change
Type=Application
      
to
Type=Service
      
Then log out and in again and your help should work from the menu as before

13. Which file include the KDE's global configurations ?

The general idea is that settings for a user are normally stored under $KDEHOME/share/config but that you can copy them to similar named files under $KDEDIR/share/config and that they will then get applied for everyone.

The only thing you need to is then a little digging in $KDEDIR/share/config to find where the settings that you are looking for is stored.

Some hints:

kdeglobals 

contains settings that apply to all programs, such as locale

kioslaverc 

settings used for io-slaves, such as proxy settings

konquerorrc 

konqueror specific settings

kdesktoprc 

desktop (background) related settings, including screensaver

14. How to stop Nautilus drawing the desktop ?

JohnPettigrew

You have some weird incarnation of KDE and Gnome running in root

At some point, you ran nautilus. This, by default, will draw your desktop for you. What you need to do is to start Nautilus explicitly, then go to EditPreferences, Desktop & Trash, then deselect "Use Nautilus to draw the desktop" and click OK. Thereafter, even if you do run nautilus, it won't take your desktop over.

Copyright 2002-2003 Togan Muftuoglu