LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-02-2007, 09:41 AM   #1
sAbEr
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10
Posts: 10

Rep: Reputation: 0
xfce acting weird; starting w/out desktop background and icons,changing file managers


Just today, I restarted my computer and I noticed that Xfce didn't start properly. First, when i logged in, it dumped me to a light-blue screen (no desktop wallpaper) with the application panel sitting at the top, no icons or anything, just a flat blue desktop. When head for Settings->Desktop, i noticed that the box that says "Allow Xfce to manage the desktop" is unchecked, and when i check it, the wallpaper and icons appear. This happens whenever I log back out and log in again, and i have no clue what it is that might've been changed. And every so often, it seems as if Xfce is switching between Thunar and Nautilus, because one moment I would double click on my folder and get the bare interface of Thunar, and 10 minutes later i'd double click and get Nautilus again. This is also happening with the terminal (one minute its Xterm, next min its Gnome Terminal with its white background) I did install StepMania recently, but I don't think that's the problem. I'm on ubuntu 6.06, running Xfce (don't know version but I think its 4.0.0, i know it comes w/a compositing manager because i tried it out), Can anyone help? It seems as if the PC is starting to lose its mind or something.
 
Old 04-03-2007, 01:50 AM   #2
Kannies
LQ Newbie
 
Registered: Dec 2005
Location: England
Distribution: SUSE 10.1 and KPA Linux 1.0 LFS 6.2
Posts: 8

Rep: Reputation: 0
Check your .xinitrc in /root folder (or general user as I hear umbunto doenst have a root user)

The file should also appear in a users home directory - please note it is a hidden file.

Make sure it contains the following:

xfce-mcs-manager
xfwm4 --daemon
xftaskbar4 &
xfdesktop &
exec xfce4-pane
 
Old 04-03-2007, 03:36 AM   #3
sAbEr
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10
Posts: 10

Original Poster
Rep: Reputation: 0
Checked in both /home/my_username and in /root, but no file named .xinitrc. Using 'locate .xinitrc' i was able to find one in '/etc/X11..' and in /etc/xdg/xfce4, but which one is the one i need to edit?
 
Old 04-03-2007, 03:48 AM   #4
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
Edit the one in /home/my_username (~/.xinitrc)

You can add what Kannies listed.

or just add:
Code:
exec xfce4-session
 
Old 04-03-2007, 05:41 AM   #5
sAbEr
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10
Posts: 10

Original Poster
Rep: Reputation: 0
'/home/my_user/.xinitrc' doesn't exist either. Create it and just add the stuff listed above?
 
Old 04-03-2007, 05:48 AM   #6
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
yeah just create it

this will create it and add "exec xfce4-session" to it:
Code:
touch ~/.xinitrc
echo "exec xfce4-session" >> ~/.xinitrc
then restart X and see how you go
 
Old 04-03-2007, 06:21 AM   #7
sAbEr
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10
Posts: 10

Original Poster
Rep: Reputation: 0
Ok, i've tried that, and I tried adding
Code:
echo "xfce-mcs-manager" >> ~/.xinitrc
echo "xfwm4 --daemon" >> ~/.xinitrc
echo "xftaskbar4 &" >> ~/.xinitrc
echo "xfdesktop &" >> ~/.xinitrc
echo "exec xfce4-pane" >> ~/.xinitrc
And it still doesn't start right. I have to head for Settings->Desktop and check the box that says "Allow Xfce to manage the desktop" in order for the icons and the background to appear. I'd like for it to stick to thunar as the main file manager, though, do those commands listed above make sure of that?
 
Old 04-03-2007, 06:31 AM   #8
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
are you using GDM or KDM?

if so have a read here:
http://www.xfce.org/documentation/in...setting-up-gdm

otherwise I dont know??
try only having "exec xfce4-session" in .xinitrc.. this is what I use and it always starts as I have left it(including open programs)

EDIT:
do you have XFCE 4.4?
is so add "exec startxfce4" instead.

Last edited by deroB; 04-03-2007 at 06:42 AM.
 
Old 04-03-2007, 06:45 AM   #9
sAbEr
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10
Posts: 10

Original Poster
Rep: Reputation: 0
I'm not too sure what i'm using to log in. I think its GDM, but i'm not sure. My distro is no longer Mandrake 10, btw, its Ubuntu 6.06 now. I remember installing it and then using synaptic to download Xfce. I checked the link you provided, but I can't find the example .desktop file it mentions.
 
Old 04-04-2007, 10:27 AM   #10
Kannies
LQ Newbie
 
Registered: Dec 2005
Location: England
Distribution: SUSE 10.1 and KPA Linux 1.0 LFS 6.2
Posts: 8

Rep: Reputation: 0
This is what i think is happening:
When you start XFCE, one of the first files that is executed is ./xinitrc.
The commands in this file are executed therfore initialising the various objects, ie panel and taskbar.

Correct me if i'm wrong but doesnt 'xfce4-session' literally saves the current state of the desktop for the next time you start, so in theory if added to xinitrc, it will always save your faulty configuration before the desktop even loads up so whatever changes you make in the session it will always revert back to the faulty config.

Try removing 'xfce4-session' from 'xinitrc'.
Make your desired changes in the settings menu to revert things to how you want and then run 'xfce4-session' from the terminal. If you get messages about objects already appearing then try Ctrl-Alt- backspace to go to cancel your x session and try from command line mode.
 
Old 04-05-2007, 12:25 AM   #11
sAbEr
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake 10
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
This is what i think is happening:
When you start XFCE, one of the first files that is executed is ./xinitrc.
The commands in this file are executed therfore initialising the various objects, ie panel and taskbar.

Correct me if i'm wrong but doesnt 'xfce4-session' literally saves the current state of the desktop for the next time you start, so in theory if added to xinitrc, it will always save your faulty configuration before the desktop even loads up so whatever changes you make in the session it will always revert back to the faulty config.

Try removing 'xfce4-session' from 'xinitrc'.
Make your desired changes in the settings menu to revert things to how you want and then run 'xfce4-session' from the terminal. If you get messages about objects already appearing then try Ctrl-Alt- backspace to go to cancel your x session and try from command line mode.
Ok, I removed xfce4-session from the xinitrc file, and then restarted x, made the changes that i wanted to, but when i tried to run xfce4-session from the terminal, it said that a nother session manager was already running.

EDIT: I checked it via ubuntu's system monitor, and it looks like the session manaager open is x-session-manager

Last edited by sAbEr; 04-05-2007 at 12:44 AM.
 
Old 04-18-2007, 03:39 PM   #12
Kannies
LQ Newbie
 
Registered: Dec 2005
Location: England
Distribution: SUSE 10.1 and KPA Linux 1.0 LFS 6.2
Posts: 8

Rep: Reputation: 0
Did you ever fix this? I'm afraid I can't think of anything else but re-installation (a headache I know). However one last avenue is to check out the website 'www.linuxfromscratch.org/blfs' and read the manual section on xfce.
 
  


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 4.4 - Desktop Icons RoiSoleil Linux - Software 5 03-13-2008 02:56 PM
XFCE desktop Icons Master Fox Slackware 8 02-26-2006 03:35 PM
XFCE 4.2 Desktop Icons Jake_da_Snake Linux - Software 0 11-07-2005 10:19 PM
xfce desktop is acting like gnome???!!! triet Linux - Software 6 12-06-2004 10:36 AM
XFCE Desktop Icons jerryvb VectorLinux 3 11-22-2003 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:47 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
Open Source Consulting | Domain Registration