LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-27-2003, 10:26 PM   #1
Solean
Member
 
Registered: Apr 2003
Distribution: Libranet
Posts: 63

Rep: Reputation: 15
Xfce 4 ....


I currently use Libranet, which is based on Debian.


I installed XFCE 4 via the update-xfce script, was very happy that it worked. But, seeing that I can't log out, played around with my GDM Session config for a second. It worked, but kept kicking me out once the last program is loaded. I'll show you a screenie if I knew how to. Can anybody show me the GDM Session file?
 
Old 09-27-2003, 10:29 PM   #2
Solean
Member
 
Registered: Apr 2003
Distribution: Libranet
Posts: 63

Original Poster
Rep: Reputation: 15
Update! I just found that the other accounts work! Only mine doesn't. I suspect it's something I did with my session file.....


I don't want to do anything to my configurations... what should I do?
 
Old 09-28-2003, 01:38 AM   #3
Solean
Member
 
Registered: Apr 2003
Distribution: Libranet
Posts: 63

Original Poster
Rep: Reputation: 15
Bump. Can't anybody help me?
 
Old 09-28-2003, 04:02 AM   #4
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
It's difficult to diagnose without seeing your .xsession file, but from your description I suspect that you need to remove an extra ampersand (&) from that file. X11 will shut down as soon as the last program listed in your .xinitrc or .xsession script has finished (or been backgrounded), so the last program in the list should be your window manager (this is debatable, but I prefer this setup), and it should not be backgrounded (i.e. it should not be followed by an ampersand).

The following link is to the Fluxbox documentation for .xinitrc / .xsession files, but the information is useful for whatever window manager you're using:

http://fluxbox.org/docbook/en/html/app-setup.html

This page also describes an alternate setup for the .xinitrc / .xsession file.

Enjoy!
--- Cerbere
 
Old 09-28-2003, 05:32 PM   #5
Solean
Member
 
Registered: Apr 2003
Distribution: Libranet
Posts: 63

Original Poster
Rep: Reputation: 15
ok! Thanks!
 
Old 09-28-2003, 05:34 PM   #6
Solean
Member
 
Registered: Apr 2003
Distribution: Libranet
Posts: 63

Original Poster
Rep: Reputation: 15
Still doesn't work... here is my /etc/gdm/Sessions/Xfce file...



#!/bin/sh
#
# Make xfce selectable in the GDM Chooser menu

# Some distro needs to allow even localhost to use the display
# Uncomment this if you experience "Can't open display" when running
# programs from xfce. BEWARE this is considered as a vulnerability !
#
# xhost +$HOSTNAME
#
xsetroot -solid black -cursor_name watch

# Unselect the following line to get a BIG mouse cursor in Xfce :
# xset +fp "/usr/share/xfce/cursors"

# Set up additionnal fonts that ship with Xfce (Change id38121117)
xset fp+ "/usr/share/xfce/fonts"

# Start-up stuff from ~/Desktop/Autostart directory, if it exists
# (as it seems to be the new standard)
if [ -d "$HOME/Desktop/Autostart" ]; then
for i in `ls -1 ${HOME}/Desktop/Autostart/ 2>/dev/null`; do
if [ -x $HOME/Desktop/Autostart/$i ]; then
$HOME/Desktop/Autostart/$i &
fi
done
fi

# Uncomment this if you run gkrellm. See http://www.gkrellm.net for
# more info. It will launch gkrellm if it's not already running
if [ -z $(grep gkrellm ${HOME}/.xfce/xfwm-session) ]; then
exec /usr/bin/gkrellm &
fi

# Launch xscreensaver (if available)
xscreensaver -no-splash &

# Finally, launch XFce window manager
exec xfce4-session
xsetroot -solid black
 
Old 09-28-2003, 05:37 PM   #7
Solean
Member
 
Registered: Apr 2003
Distribution: Libranet
Posts: 63

Original Poster
Rep: Reputation: 15
and Just to make things even MORE easier, I took a screenie on my error message.

http://www.imagestation.com/picture/...6.jpg.orig.jpg


Notice GKRELLM keeps popping up. How can I fix that?


 
Old 09-29-2003, 03:02 AM   #8
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
You should read the page that I suggested. It explains that the 'exec' command means that after the command following it executes, the script ends. Since you have 'exec gkrellm &', it starts and backgrounds gkrellm, then exits the xsession script, so your xsession ends.

Visit the link that I provided, then try removing exec from that line, as well as the second to last line. It really isn't necessary unless you're building a script that allows you to choose between several window managers; and in this script it will prevent the last line from executing. Come to think of it, that last line should probably be moved up and you should add a & to the end of it.

Enjoy!
--- Cerbere
 
  


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
Xfce problems with task bar and xfce-panel aeruzcar Linux - Software 4 06-26-2006 05:29 AM
xfce... bong.mau Programming 2 12-03-2005 04:36 AM
Xfce interndan Slackware 13 06-04-2005 10:55 AM
Where is XFCE ? vladoportos Suse/Novell 4 03-18-2005 12:41 PM
Xfce Kyl3 Slackware 6 05-26-2004 12:03 AM


All times are GMT -5. The time now is 05:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration