! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
taskbar will not start automatically
Status:
RESOLVED: WORKSFORME
Product:
Xfce4-panel

Comments

Description Steve 2004-11-04 18:30:38 CET
Hi there 

I have xfce 4.2 beta 2 installed by the graphical installer (great proggy!).  At
first the taskbar would start automatically.  Now it has to be started manually
for each session.  Below is my /opt/xfce42/etc/xdg/xfce4/xinitrc file: (note:
there is no ~/<path_to>/xinitrc file)
==========================
#!/bin/sh

# fix broken $UID on some system...
if test "x$UID" = "x"; then
	UID=`id -u`
fi

# create temp file for X resources
XRESOURCES=`mktemp /tmp/xrdb.XXXXXX`

# Has to go prior to merging Xft.xrdb, as its the "Defaults" file
test -r $HOME/.Xdefaults && cat $HOME/.Xdefaults >> $XRESOURCES

# Check if the user wants to override the above defaults (set by
# mcs ui plugin)
if test "x$XDG_CONFIG_HOME" = "x" ; then
  BASEDIR=$HOME/.config/xfce4
else
  BASEDIR=$XDG_CONFIG_HOME/xfce4
fi

if test -r $BASEDIR/Xft.xrdb; then
  cat $BASEDIR/Xft.xrdb >> $XRESOURCES
elif test -r $XFCE4HOME/Xft.xrdb; then
  mkdir -p $BASEDIR
  cp $XFCE4HOME/Xft.xrdb $BASEDIR/
  cat $BASEDIR/Xft.xrdb >> $XRESOURCES
else
  # Those are fallback settings, use the ui plugin to change it
  # or add your overrides to ~/.Xresources
  # Xft DPI: 96
  # Xft.hintstyle: hintnone/hintslight/hintmedium/hintfull
  # Xft hinting: 1/0
cat >> $XRESOURCES << EOF
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintmedium
EOF
fi

# ~/.Xresources contains overrides to the above
test -r $HOME/.Xresources && cat $HOME/.Xresources >> $XRESOURCES

# load all X resources
xrdb -nocpp -merge $XRESOURCES
rm -f $XRESOURCES

# load local modmap
test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap

# Launch xscreensaver (if available), but only as non-root user
test $UID -gt 0 -a -z "$VNCSESSION" && xscreensaver -no-splash &

# Use ssh-agent if installed.  Run it separately so it populates the
# environment here, so we can clean it up later.
sshagent=`which ssh-agent`
if test "$sshagent" -a "x$sshagent" != "xno"; then
	eval `$sshagent`
fi

# Run xfce4-session if installed
xfcesm=`which xfce4-session`
case "x$xfcesm" in
	x|xno*)
		;;
	*)
		$xfcesm

		if test "$SSH_AGENT_PID"; then
			eval `$sshagent -k`
		fi
		exit 0
		;;
esac

# this is only necessary when running w/o xfce4-session
xsetroot -solid black -cursor_name watch

# or use old-fashioned startup script otherwise

xfce-mcs-manager
xfwm4 --daemon

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

xftaskbar4&
xfdesktop&
xfcalendar &

panel=`which xfce4-panel`
case "x$panel" in
	x|xno*)
		;;
	*)
		$panel
		ret=$?
		while test $ret -ne 0; do
			xmessage -center -file - -timeout 20 -title Error <<EOF
A crash occured in the panel
Please report this to the xfce4-dev@xfce.org list
or on http://bugs.xfce.org
Meanwhile the panel will be restarted
EOF
			cat >&2 <<EOF
A crash occured in the panel
Please report this to the xfce4-dev@xfce.org list
or on http://bugs.xfce.org
Meanwhile the panel will be restarted
EOF
			$panel
			ret=$?
		done
		;;
esac

if test "$SSH_AGENT_PID"; then
	eval `$sshagent -k`
fi

xsetroot -bg white -fg red  -solid black -cursor_name watch
===============================
below is my .config/xfce4-session/xfce4-session.rc file
[General]
SessionName=Default
SaveOnExit=true

Please email me if I have omitted any important information...thanks
Comment 1 Jasper Huijsmans editbugs 2004-11-05 14:01:24 CET
Sounds as if you're running the session manager. Just run xftaskbar4 from the
run dialog and save the session when you exit.
Comment 2 Jasper Huijsmans editbugs 2004-11-12 15:51:13 CET
(In reply to comment #1)
> Sounds as if you're running the session manager. Just run xftaskbar4 from the
> run dialog and save the session when you exit.

Steve, could you please confirm if this is indeed the case?
Comment 3 Jasper Huijsmans editbugs 2004-11-14 10:23:00 CET
I don't think this is a bug in Xfce.

Bug #462

Reported by:
Steve
Reported on: 2004-11-04
Last modified on: 2010-11-20

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Attachments

Additional information