LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2007, 02:58 PM   #1
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 110

Rep: Reputation: 24
Question 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?
 
Old 01-03-2007, 04:17 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
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
 
Old 01-04-2007, 05:05 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
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
 
Old 01-05-2007, 06:28 PM   #4
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 110

Original Poster
Rep: Reputation: 24
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
 
Old 01-06-2007, 01:18 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
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
 
Old 01-07-2007, 10:32 AM   #6
breadbin
Member
 
Registered: Sep 2002
Location: Dublin, Ireland
Distribution: Linux Mint 17
Posts: 110

Original Poster
Rep: Reputation: 24
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
 
Old 01-07-2007, 11:27 AM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add 'shutdown' to fluxbox menu? athanatos Slackware 5 12-09-2005 03:14 PM
How to add icons to FluxBox menu? MuD Linux - Newbie 5 03-20-2005 02:10 PM
add cxoffice apps to fluxbox menu? mipia Linux - Software 3 07-28-2004 04:31 AM
Add/change KDM menu Wynd Linux - General 1 03-19-2004 04:52 PM
Add KDE menu in Gnome start menu melinda_sayang Slackware 2 03-06-2004 05:26 AM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration