You are not logged in.

#1 2015-08-13 23:20:06

0w3n
Member
From: Chicago
Registered: 2015-08-11
Posts: 20

[SOLVED] Getting error on startup: "Invalid Option: -session"

I use XFCE and when I turn on the computer, I type startx to get into the desktop environment. However, recently, I started getting this error whenever I boot into the desktop. It doesn't seem to be hindering anything, but I am just concerned. Here is a copy of my xinitrc in case it helps:

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
xbindkeys
exec startxfce4

Thanks for any help.

Last edited by 0w3n (2015-08-14 01:25:08)

Offline

#2 2015-08-14 00:26:53

toz
Member
Registered: 2011-10-28
Posts: 513

Re: [SOLVED] Getting error on startup: "Invalid Option: -session"

Do you use saved sessions? It is possible that a saved application is being restarted and is having an issue with a parameter.

Grep the files in ~/.cache/session for "-session" to see if you can identify it.
You can also try clearing your saved sessions (if you don't use saved sessions) to see if that gets rids of it.

Offline

#3 2015-08-14 01:09:04

0w3n
Member
From: Chicago
Registered: 2015-08-11
Posts: 20

Re: [SOLVED] Getting error on startup: "Invalid Option: -session"

Clearing the saved sessions (I don't even know what those do for me) fixed my problem. Thank you.

Offline

Board footer

Powered by FluxBB