You are not logged in.

#1 2009-03-27 13:10:36

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

XFCE takes a long time to start up sometimes...

I use 'ck-launch-session xfce4-session' to start XFCE.

It starts a session in which only xfce-settings-helper, xfdesktop, and xfwm4 are running. In my autostarted applications I have an entry called Autostart.sh which corresponds to a .desktop file:

.config/autostart/Autostart.sh.desktop

[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Autostart.sh
Comment=
Exec=/home/rob/.config/autostart/autostart.sh
StartupNotify=false
Terminal=false
Hidden=false

.config/autostart/autostart.sh

#!/bin/bash

stalonetray &
netwmpager &
conky &
claws-mail &
pidgin &
volwheel &

But I think this somehow really slows down xfce's loading. It seems to load the xfce stuff quickly, then it sits for sometimes 20 seconds before all the other stuff pops into life.

Any ideas?

Offline

#2 2009-03-27 13:28:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: XFCE takes a long time to start up sometimes...

I had to turn of the session manager recently because it was causing many xfdesktop and other XFCE related processes.  Try booting to a prompt and deleting ~/.cache/.sessions/* and launching xfce to see if that is an issue.

Offline

#3 2009-03-28 14:49:55

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: XFCE takes a long time to start up sometimes...

It does seem to be the culprit.

Does anyone know where the default session files reside? I might just make my custom session be the default...

EDIT: Dang. I really can't find it. I bet the default session is coded in...

Last edited by pogeymanz (2009-03-28 14:58:18)

Offline

#4 2009-03-28 22:34:53

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: XFCE takes a long time to start up sometimes...

see:
    /etc/xdg/
    /usr/share/sessions

Offline

#5 2009-03-29 14:31:21

pogeymanz
Member
Registered: 2008-03-11
Posts: 1,020

Re: XFCE takes a long time to start up sometimes...

Wow I'm dense. I even looked at that file and I didn't see what it was doing. I just changed /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml and took out a few entries.

<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-session" version="1.0">
  <property name="general" type="empty">
    <property name="FailsafeSessionName" type="string" value="Failsafe"/>
  </property>
  <property name="sessions" type="empty">
    <property name="Failsafe" type="empty">
      <property name="IsFailsafe" type="bool" value="true"/>
      <property name="Count" type="int" value="5"/>
      <property name="Client0_Command" type="array">
        <value type="string" value="xfwm4"/>
      </property>
      <property name="Client0_PerScreen" type="bool" value="false"/>
      <property name="Client3_Command" type="array">
        <value type="string" value="xfdesktop"/>
      </property>
      <property name="Client3_PerScreen" type="bool" value="false"/>
      <property name="Client4_Command" type="array">
        <value type="string" value="xfce4-settings-helper"/>
      </property>
      <property name="Client4_PerScreen" type="bool" value="false"/>
    </property>
  </property>
  <property name="splash" type="empty">
    <property name="Engine" type="string" value=""/>
  </property>
</channel>

Now it doesn't start xfce4-panel or Thunar --daemon and I don't have to use the session manager. And start up is way faster than with the session manager, which is clearly not working properly.

Offline

Board footer

Powered by FluxBB