FC3 adding to session list (blackbox, etc)
I would like to add 3rd party session managers to the default list so you can pick them at login and set them as default via switchdesk.
how can i do this or at least where should i be looking? |
I could be wrong in this, but this could be a starting point for those who want to experiment. Notice the /etc/X11 directory
As root: Copy and modify one of the KDE/GNOME scripts in this folder: /etc/X11/gdm/Sessions Open file /etc/X11/xdm/Xsession, locate the section below (about halfway down) and copy and modify the KDE line Code:
# now, we see if xdm/gdm/kdm has asked for a specific environment To set a default graphical environment, open up /etc/X11/xinit/Xclients and alter the defaults. This section is about 1/3 of the way down. Here's my swapped section: Code:
if [ -z "$PREFERRED" ]; then Hope this helps |
This is what i did (for Xfce4):
1. Copy the desktop entry file of your 3rd party session manager into /usr/share/xsessions folder. In my case, i installed Xfce to /2nd/programs/xfce-4RC1 folder, this is what i did: # cp /2nd/programs/xfce-4RC1/share/examples/xfce42.desktop /usr/share/xsessions/ This adds an entry of Xfce42 to the login screen next too Gnome, KDE, failsafe... 2. To make it the default: Go to your home folder: # cd ~ Make a backup copy of your current .Xclients-default just in case: # cp .Xclients-default .Xclients-default.backup Change .Xclients-default to contain this: #!/bin/bash exec <fullpath-to-startYourSessionManager> (in my case it's exec /2nd/programs/xfce-4RC1/bin/startxfce4) exit 1 This makes xfce4 the default manager already, no need to run switchdesk. It actually doesn't show up on switchdesk. This way is not sophisticated like Winno's way but i found it's less headace. :D Hope it can help you. I'll try Winno's way now. |
Quote:
Code:
switchdesk "desktop name" If you need to step away from gnome-session*rpm, I don't think there is one. But if you are interested in changing this in the gui, just make a small script program and have it linked to a icon you create on the desired desktop. Or learn VC++ and QDesigner and create some widgets. Hope this helps bud. =) |
This is what I did:
Code:
switchdesk blackbox |
Making a GUI for this should not be that tough. All they need to do is this:
Code:
//Assuming C++ |
I don't know how to add something to switchdesk's list. But you can add stuff to the gdm Sessions menu pretty easily:
# cd /etc/X11/dm/Sessions # cp gnome.desktop foo.desktop edit foo.desktop: change Name=GNOME to Name=foo change Exec=gnome-session to Exec=foo-session Create a /usr/local/bin/foo-session script that starts your session. Next time you start gdm, "foo" will appear as an option on the Sessions drop down. |
All times are GMT -5. The time now is 02:03 PM. |