You are not logged in.

#1 2017-03-31 11:12:36

CyberNhull
Member
Registered: 2013-01-27
Posts: 99

[SOLVED]Gnome 3.22 session via startx

I wanted to start gnome-session with startx instead of gdm (memory leaks issues). I write that on my .xinitrc but when i issue the startx command it boots with a xterm terminal into gnome and stays there.

My .xinitrc:

#!/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

#exec cinnamon-session &
exec gnome-session &
#exec startxfce4 &
#exec compton -b &
#exec compiz --replace
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
xterm -geometry 80x66+0+0 -name login

I tried to remove the uncommented xterm line but startx don't even works if i do that so i'm assuming that he boots gnome-session from xterm. So my question is how to remove or hide in background that xterm terminal?

Last edited by CyberNhull (2017-03-31 14:28:57)


If it does not kill you....It will make you smarter

Offline

#2 2017-03-31 12:18:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,892

Re: [SOLVED]Gnome 3.22 session via startx

comment the xterm and do not fork the gnome-session call?

Offline

#3 2017-03-31 14:28:39

CyberNhull
Member
Registered: 2013-01-27
Posts: 99

Re: [SOLVED]Gnome 3.22 session via startx

seth wrote:

comment the xterm and do not fork the gnome-session call?

Yup.....I'm an idiot. Thanks smile


If it does not kill you....It will make you smarter

Offline

Board footer

Powered by FluxBB