You are not logged in.

#1 2010-11-03 16:07:58

qq405165798
Member
Registered: 2010-11-03
Posts: 17

how does the gnome-screensaver autostart in xfce4

I install gnome-screensaver in xfce4.
All the autorun of xfce4 have been  searched but  I could not find the how does the gnome-screensaver autostart.
Who will help me ?
thanks.

Offline

#2 2010-11-03 16:49:30

sisco311
Member
From: Romania
Registered: 2008-05-23
Posts: 112

Re: how does the gnome-screensaver autostart in xfce4

/etc/xdg/autostart/gnome-screensaver.desktop

See: http://standards.freedesktop.org/autost … atest.html


don't drink unwashed fruit juice.
i never make predictions, especially about the future.

Offline

#3 2010-11-04 05:19:00

qq405165798
Member
Registered: 2010-11-03
Posts: 17

Re: how does the gnome-screensaver autostart in xfce4

sisco311 wrote:

/etc/xdg/autostart/gnome-screensaver.desktop

See: http://standards.freedesktop.org/autost … atest.html


$ ls /etc/xdg/autostart
gdu-notification-daemon.desktop
gsettings-data-convert.desktop
ibus.desktop
polkit-kde-authentication-agent-1.desktop
xfce4-clipman-plugin-autostart.desktop
xfce4-notes-autostart.desktop
xfce4-power-manager.desktop
xfce4-settings-helper-autostart.desktop
xfce4-tips-autostart.desktop
xfconf-migration-4.6.desktop
$


There is not gnome-screensaver

Offline

#4 2010-11-04 05:24:14

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

Re: how does the gnome-screensaver autostart in xfce4

Menu > Settings > Session and Startup > Advanced.  Do you have "Launch GNOME services on startup" checked?

Offline

#5 2010-11-04 07:42:13

Kilzool
Member
From: Ireland
Registered: 2010-08-04
Posts: 232

Re: how does the gnome-screensaver autostart in xfce4

I recall looking in the bash script /usr/bin/startxfce4

Offline

#6 2010-11-04 10:20:41

qq405165798
Member
Registered: 2010-11-03
Posts: 17

Re: how does the gnome-screensaver autostart in xfce4

Allan wrote:

Menu > Settings > Session and Startup > Advanced.  Do you have "Launch GNOME services on startup" checked?

neither gnome or kde.
All checkbox is not checked.

Offline

#7 2010-11-04 10:39:19

qq405165798
Member
Registered: 2010-11-03
Posts: 17

Re: how does the gnome-screensaver autostart in xfce4

Kilzool wrote:

I recall looking in the bash script /usr/bin/startxfce4

It is my /usr/bin/startxfce4 . It seens like not being changed.

#!/bin/sh
#
#  xfce4
#
#  Copyright (C) 1996-2003 Olivier Fourdan (fourdan@xfce.org)
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

if test "x$XDG_CONFIG_HOME" = "x"
then
  BASEDIR="$HOME/.config/xfce4/"
else
  BASEDIR="$XDG_CONFIG_HOME/xfce4"
fi

if test "x$XDG_DATA_DIRS" = "x"
then
  XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share"
else
  XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/share"
fi
export XDG_DATA_DIRS

if test "x$DISPLAY" = "x"
then
  echo "$0: Starting X server"
  prog=xinit
else
  echo "$0: X server already running on display $DISPLAY"
  prog=/bin/sh
fi

if test ! "x$*" = "x"
then
  OPT=$*
  if test "x${OPT#*--}" = "x${OPT}"
  then
    CLIENTRC=${OPT}
  else
    SERVERRC=${OPT#*-- }
    CLIENTRC=${OPT% --*}
  fi
fi

if [ -f "$HOME/.xserverrc" ]; then
  SERVERRC="$HOME/.xserverrc $SERVERRC"
elif [ -f /etc/X11/xinit/xserverrc ]; then
  SERVERRC="/etc/X11/xinit/xserverrc $SERVERRC"
fi

if test ! "x$SERVERRC" = "x"
then
  SERVERRC="-- $SERVERRC"
fi

if [ -f $BASEDIR/xinitrc ]; then
  exec $prog $BASEDIR/xinitrc $CLIENTRC $SERVERRC
elif [ -f $HOME/.xfce4/xinitrc ]; then
  mkdir -p $BASEDIR
  cp $HOME/.xfce4/xinitrc $BASEDIR/
  exec $prog $BASEDIR/xinitrc $CLIENTRC $SERVERRC
else
  exec $prog /etc/xdg/xfce4/xinitrc $CLIENTRC $SERVERRC
fi

Last edited by qq405165798 (2010-11-04 10:54:26)

Offline

#8 2010-11-04 10:51:56

qq405165798
Member
Registered: 2010-11-03
Posts: 17

Re: how does the gnome-screensaver autostart in xfce4

OHHHH! It is solved.

I found this  in the
/etc/xdg/xfce4/xinitrc

# Launch xscreensaver (if available), but only as non-root user
if test $UID -gt 0 -a -z "$VNCSESSION"; then
    if test x"`which xscreensaver 2>/dev/null`" != x""; then
        xscreensaver -no-splash &
    elif test x"`which gnome-screensaver 2>/dev/null`" != x""; then
        gnome-screensaver &
    fi
fi

It seems like  already existing from  the time of arch system installed.
I hate this script  because I can config it myself.
The autorun make   gnome-screensaver print garbages in my LANG="zh_CN.utf8" environment.

Thank you very much indeed.There is no people could or would help me in chinese bbs.

Last edited by qq405165798 (2010-11-04 10:55:57)

Offline

Board footer

Powered by FluxBB