LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to add Fluxbox to KDM menu but can't? (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-add-fluxbox-to-kdm-menu-but-cant-515972/)

breadbin 01-03-2007 02:58 PM

Trying to add Fluxbox to KDM menu but can't?
 
Hi I'm trying to add fluxbox to the kdm menu and have tried everything really. I have a regular Mandriva 2007 install. I have read the fluxbox faq and tried all the usual things i.e. add the line to my kdmrc in SessionTypes field but there is no field called that. Tried using GDM too but does not seem to work either. Is it Mandriva thats doing something different? Is there a particular folder called xinit.d or somehting and if so what should I put in it?

Brian1 01-03-2007 04:17 PM

This may be what you are after. It all depends on how Mandriva setup kdm. Some distro modify things and makes it a pain to get it right. I don't use Mandriva but currently Centos 4.4. This is the way it works on my system.
The kdmrc file on mine is in /etc/kde/kdm/kdmrc.
Inside the file it Sessions points to Session=/etc/kde/kdm/Xsession
Now this script redirects itself to /etc/X11/xdm/Xsession
In that script I have a line like this after the gnome and kde ones.
Code:

    fluxbox)
        # fluxbox
      exec -l $SHELL -c "$DBUS_LAUNCH $SWITCHDESKPATH/Xclients.fluxbox"

Now that points to /usr/share/switchdesk/Xclients.fluxbox
That script looks like this.
Code:

#! /bin/bash
# (c) 2000-2004 Red Hat, Inc.

WM="fluxbox"
WMPATH="/usr/bin /usr/X11R6/bin /usr/local/bin"

for p in $WMPATH ; do
        [ -x $p/$WM ] && exec $p/$WM
done

exit 1

This is the way I beleive it works on my system reading throught the scripts from the start. Hope this helps.

Brian

Brian1 01-04-2007 05:05 PM

I am missing something. I did a modified files changing the name of the fluxbox option from the menu. The changes made no difference on the login manager. If I get time I will see what other files play in the configuration of the kdm,gdm,xdm.

Brian

breadbin 01-05-2007 06:28 PM

Thanks for taking an interest Brian, there are 2 things, first, my xsession file is in the same place as yours but there are only 3 lines however and none of them mention kds or gnome, i'll show it below. Secondly I don't have a folder called /usr/share/switchdesk. I did get FluxBox to work by changing the xsession file to just exec fluxbox then none of the other window managers worked so i changed it back.

Here is the contents of my xsession, hope it helps

#!/bin/bash -login

exec /etc/X11/Xsession $*

# Xsession ends here


- ed

Brian1 01-06-2007 01:18 PM

I spent some more time on this but as you can see it differs a bit from distro to distro as far as the scripts are concerned. If you get please post. I will do the same once I can get it done myself. Should have some play time tomorrow.

Brian

breadbin 01-07-2007 10:32 AM

I have it, it was not so hard after all but just once you know where to look. The place to look is in /usr/share/apps/kdm/sessions. All the files in here appear on the menu so I just opened one of them and saved it as 08Fluxbox.desktop and changed the contents to this.

[Desktop Entry]
Encoding=UTF-8
Name=FluxBox
Comment=FluxBox
TryExec=/usr/local/bin/startfluxbox
Exec=fluxbox
Icon=
Type=Application

It works perfectly now, actually I did try this before but somehow the extension ".desktop" was not saved with the file so that is why it did not work before. Thanks for all your help -ed

Brian1 01-07-2007 11:27 AM

Defiantly different than my install. In that directory I have 46 of them. Some with the strangest of names like ratpoison and larswm. But all of them do not appear on my login screen. None of them start with a number value. I am guessing yours start from 01 to 08 being fluxbox. I search the drive for items like this. May be in a different location.

Brian


All times are GMT -5. The time now is 01:47 AM.