Author Topic: can't remove programs from startup e17  (Read 2718 times)

Offline shedyed

  • Jr. Member
  • **
  • Posts: 16
Re: can't remove programs from startup e17
« Reply #15 on: July 25, 2011, 11:06:30 AM »
maybe you're running that gdm abomination which has 'Run Xclient script' as the default

Also try starting out with a brand new profile in Settings>settings panel; the minimalist for example

Offline melodie

  • Hero Member
  • *****
  • Posts: 5945
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: can't remove programs from startup e17
« Reply #16 on: July 26, 2011, 02:59:54 AM »
maybe you're running that gdm abomination which has 'Run Xclient script' as the default

This cannot influence the start of the programs I believe, unless the start of some programs are inserted in the file ~/.xsession.

So peterhodges, you can check the content of your .xsession file and paste it here, and you could follow shedyed suggest and select the configure option at login screen, type in your root password, and check what session is selected. If it is Xclient script, then switch to E17.

Quote
Also try starting out with a brand new profile in Settings>settings panel; the minimalist for example

shedyed, this is not an abomination, just another way to setup things. This method needs to be precise in the configuration of the .xsession file though (in other distros it is the .xinitrc which is used, but this version of GDM just ignores it... )

Regards,
Mélodie


melodie at #lpic-fr on irc.freenode.net

Offline peterhodges

  • Jr. Member
  • **
  • Posts: 39
Re: can't remove programs from startup e17
« Reply #17 on: August 16, 2011, 11:30:20 PM »
here is xsession:

#!/bin/sh
#---------------------------------------------------------------
# Project         : Mandriva Linux
# Module          : xinitrc
# File            : Xsession
# Version         : $Id: Xsession,v 1.48 2006/05/16 13:48:06 boiko Exp $
# Author          : Chmouel Boudjnah
# Created On      : Mon May 30 11:44:57 2005
# Purpose         : start a graphical session according to the
#                  argument.
#---------------------------------------------------------------
# default values

DESKTOP=default

# read the user (~/.i18n) or system-wide (/etc/sysconfig/i18n) i18n settings
. /etc/profile.d/10lang.sh

if [ -z "$GDMSESSION" ]; then
    # redirect errors to a file in user's home directory if we can
    for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" "/tmp/xses-$USER"
   do
   if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null )
       then
       chmod 600 "$errfile"
       exec > "$errfile" 2>&1
       break
   fi
    done
fi

# Linux default background
if [ "`whoami`" = root ]; then
    IS_ROOT=1
else
    IS_ROOT=
fi

xsetroot -cursor_name watch

userresources=$HOME/.Xresources
userresources2=$HOME/.Xdefaults
sysresources=/etc/X11/Xresources

# merge in defaults and keymaps
if [ -f $sysresources ]; then
    xrdb -nocpp -merge $sysresources
fi
 
if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $userresources2 ]; then
    xrdb -merge $userresources2
fi

if [ -x /etc/X11/xinit/fixkeyboard ]; then
    /etc/X11/xinit/fixkeyboard
fi

CK_XINIT_SESSION=
if [ -x /usr/bin/ck-xinit-session -a -z "$XDG_SESSION_COOKIE" ]; then
    CK_XINIT_SESSION="/usr/bin/ck-xinit-session"
fi


if [ -z "$BROWSER" ] ; then
   BROWSER=`which www-browser 2> /dev/null`
   if [ -n "$BROWSER" ] && [ -e "$BROWSER" ] ; then
      export BROWSER
   fi
fi


# now, we see if xdm/gdm/kdm has asked for a specific environment
if [ $# = 1 ]; then
    DESKTOP=$1
else
    # use default DESKTOP from config file
    # users may want to choose their own desktop
    # even when x-session is started by startx command.
    # -- Jaegeum --
    if [ -f $HOME/.desktop ]; then
        . $HOME/.desktop >/dev/null 2>&1
    elif [ -f /etc/sysconfig/desktop ]; then
   . /etc/sysconfig/desktop >/dev/null 2>&1
    fi
fi

### Launch first time wizard if needed
if [ -z "$IS_ROOT" -a ! -e $HOME/.drakfw ] && type drakfw > /dev/null 2>&1 && touch $HOME/.drakfw > /dev/null 2>&1; then
    if [ -x /etc/X11/xinit.d/numlock ]; then
   /etc/X11/xinit.d/numlock
    fi
    xsetroot -cursor_name left_ptr
    exec $CK_XINIT_SESSION drakfw
fi


if [ "${DESKTOP}" = default ]; then
    SESSION=$(/usr/sbin/chksession -F)
else
    SESSION=${DESKTOP}
fi

# run scripts in /etc/X11/xinit.d
for i in /etc/X11/xinit.d/* ; do
    [ -d $i ] && continue
    # Don't run ??foo.{rpmsave,rpmorig,rpmnew,~} scripts
    [ "${i%.rpmsave}" != "${i}" ] && continue
    [ "${i%.rpmorig}" != "${i}" ] && continue
    [ "${i%.rpmnew}" != "${i}" ] && continue
    [ "${i%\~}" != "${i}" ] && continue

    if [ -x $i ]; then
   if grep -q "# to be sourced" $i; then
       . $i "${SESSION}"
   else
       $CK_XINIT_SESSION $i "${SESSION}" &
   fi
    fi
done

if [ -n "$DESKTOP" ]; then
    case $DESKTOP in
       failsafe)
        xsetroot -cursor_name left_ptr
   type -p rxvt > /dev/null >& 2 && exec rxvt -geometry 80x24-0-0
   type -p xterm > /dev/null >& 2 && exec xterm -geometry 80x24-0-0
   type -p xvt > /dev/null >& 2 && exec xvt
   type -p twm > /dev/null >& 2 && exec $CK_XINIT_SESSION twm
   ;;
   default)
   ;;
   *)
   if type -p "$DESKTOP" > /dev/null; then
       exec $CK_XINIT_SESSION /bin/sh -c "$DESKTOP"
   else
       exec $CK_XINIT_SESSION /bin/sh -c "$(/usr/sbin/chksession -x=$DESKTOP)"
   fi
   ;;
    esac
fi

# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
        xsetroot -cursor_name left_ptr
   exec $CK_XINIT_SESSION /bin/sh -c "$HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
        xsetroot -cursor_name left_ptr
   exec $CK_XINIT_SESSION /bin/sh -c "$HOME/.Xclients"
fi

# We may try with chksession
if [ -x /usr/sbin/chksession ];then
#get the first available
   SESSION=$(/usr/sbin/chksession -F)
   [ -n "$SESSION" -a "$SESSION" != default ] && exec $CK_XINIT_SESSION /bin/sh -c "$(/usr/sbin/chksession -x=$SESSION)"
fi

# Argh! Nothing good is installed. Fall back to icewm
if [ -x /usr/bin/icewm ];then
   exec $CK_XINIT_SESSION /usr/bin/icewm
else
   # gosh, neither icewm is available;
   # fall back to failsafe settings
        xsetroot -cursor_name left_ptr
   xclock -geometry 100x100-5+5 &
   xvt -geometry +0+50 &
   if [ -x "$BROWSER" -a -f /usr/share/doc/HTML/index.html ]; then
       $BROWSER /usr/share/doc/HTML/index.html &
   fi
   if [ -x /usr/bin/icewm-light ];then
       exec $CK_XINIT_SESSION /usr/bin/icewm-light
   elif [ -x /usr/bin/twm ];then
       exec $CK_XINIT_SESSION /usr/bin/twm
   else
       exec $CK_XINIT_SESSION /usr/bin/xsm
   fi
fi

Offline peterhodges

  • Jr. Member
  • **
  • Posts: 39
Re: can't remove programs from startup e17
« Reply #18 on: August 16, 2011, 11:33:44 PM »
 a second xsession, found in the gdm folder:

#!/bin/sh
#
# This is SORT OF LIKE an X session, but not quite.  You get a command as the
# first argument (it could be multiple words, so run it with "eval").  As a
# special case, the command can be:
#  default - Run the appropriate Xclients startup (see the code below)
#  custom - Run ~/.xsession and if that's not available run 'default'
#
# (Note that other arguments could also follow, but only the command one is
# right now relevant and supported)
#
# The output is ALREADY redirected to .xsession-errors in GDM.  This way
# .xsession-errors actually gets more output such as if the PreSession script
# is failing.  This also prevents DoS attacks if some app in the users session
# can be prodded to dump lots of stuff on the stdout/stderr.  We wish to be
# robust don't we?  In case you wish to use an existing script for other DM's,
# you can just not redirect when GDMSESSION is set.  GDMSESSION will always
# be set from gdm.
#
# Also note that this is not run as a login shell, this is just executed.
# This is why we source the profile files below.
#
# based on:
# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $

command="$@"

# this will go into the .xsession-errors along with all other echo's
# good for debugging where things went wrong
echo "$0: Beginning session setup..."

# First read /etc/profile and .profile
test -f /etc/profile && . /etc/profile
test -f "$HOME/.profile" && . "$HOME/.profile"
# Second read /etc/xprofile and .xprofile for X specific setup
test -f /etc/xprofile && . /etc/xprofile
test -f "$HOME/.xprofile" && . "$HOME/.xprofile"

# Translation stuff
if [ -x "/usr/lib/gdmtranslate" ] ; then
  gdmtranslate="/usr/lib/gdmtranslate"
else
  gdmtranslate=
fi

# Note that this should only go to zenity dialogs which always expect utf8
gettextfunc () {
  if [ "x$gdmtranslate" != "x" ] ; then
    "$gdmtranslate" --utf8 "$1"
  else
    echo "$1"
  fi
}

OLD_IFS=$IFS

gdmwhich () {
  COMMAND="$1"
  OUTPUT=
  IFS=:
  for dir in $PATH
  do
    if test -x "$dir/$COMMAND" ; then
      if test "x$OUTPUT" = "x" ; then
        OUTPUT="$dir/$COMMAND"
      fi
    fi
  done
  IFS=$OLD_IFS
  echo "$OUTPUT"
}

zenity=`gdmwhich zenity`

# Note: ~/.xsession-errors is now done in the daemon so that it
# works for ALL sessions (except ones named 'Failsafe')

# clean up after xbanner
freetemp=`gdmwhich freetemp`
if [ -n "$freetemp" ] ; then
   "$freetemp"
fi

# run all system xinitrc shell scripts.
if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for i in /etc/X11/xinit/xinitrc.d/* ; do
        if [ -x "$i" ]; then
       . "$i"
        fi
    done
fi

if [ "x$command" = "xcustom" ] ; then
  if [ -x "$HOME/.xsession" ]; then
    command="$HOME/.xsession"
  else
    echo "$0: Cannot find ~/.xsession will try the default session"
    command="default"
  fi
fi

if [ "x$command" = "xdefault" ] ; then
  if [ -x "$HOME/.Xclients" ]; then
    command="$HOME/.Xclients"
  elif [ -x /usr/share/X11/xdm/Xsession ]; then
    command="/usr/share/X11/xdm/Xsession default"
  elif [ -x /etc/X11/xdm/Xsession ]; then
    command="/etc/X11/xdm/Xsession default"
  elif [ -x /etc/X11/xinit/Xclients ]; then
    command="/etc/X11/xinit/Xclients"
  elif [ -x /etc/X11/Xclients ]; then
    command="/etc/X11/Xclients"
  else
    if [ -n "$zenity" ] ; then
   disptext=`gettextfunc "System has no Xclients file, so starting a failsafe xterm session.  Windows will have focus only if the mouse pointer is above them.  To get out of this mode type 'exit' in the window."`
      "$zenity" --info --text "$disptext"
    else
      echo "$0: Cannot find Xclients"
    fi
    exec xvt -geometry 80x24+0+0
  fi
fi

# add ssh-agent if found
sshagent="`gdmwhich ssh-agent`"
if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
    command="$sshagent -- $command"
elif [ -z "$sshagent" ] ; then
    echo "$0: ssh-agent not found!"
fi

echo "$0: Setup done, will execute: $command"

eval exec $command

echo "$0: Executing $command failed, will run xterm"

if [ -n "$zenity" ] ; then
   disptext=`gettextfunc "Failed to start the session, so starting a failsafe xterm session.  Windows will have focus only if the mouse pointer is above them.  To get out of this mode type 'exit' in the window."`
   "$zenity" --info --text "$disptext"
fi

exec xvt -geometry 80x24+0+0