You are not logged in.

#1 2013-06-05 12:40:18

arcon
Member
Registered: 2013-05-27
Posts: 128

[SOLVED]~/.bash_profile with startx not working

Hi!! All smile

I am again in this noob situation, i am trying to run openbox but unable to do so, please help!!!

~/.bashrc_profile

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

(not working)upon start up it just throw me to the login screen. sad

*as also my openbox does not start with

startx

but when i do:

startx /usr/bin/openbox-session

then it works.Why?? please tell..

my Xorg.0.log is not showing any error

Though kde is working fine but when i looked into .xsession-errors i find this:

startkde: Starting up...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

* somebody please tell what i am doing wrong or at least give me some pointer.

Last edited by arcon (2013-06-05 13:49:27)


The short cuts are only short because they don't actually go anywhere. -- Trilby
Nothing feels better than being understood -- awayand
A pathetic dreamer smile

Offline

#2 2013-06-05 13:03:14

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED]~/.bash_profile with startx not working

I'd recommend reading man startx, but in the meantime, what's in your .xinitrc file?


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#3 2013-06-05 13:08:13

arcon
Member
Registered: 2013-05-27
Posts: 128

Re: [SOLVED]~/.bash_profile with startx not working

#!/bin/sh
# 
# ~/.xinitrc
# 
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi
# 
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec dbus-launch openbox-session&

The short cuts are only short because they don't actually go anywhere. -- Trilby
Nothing feels better than being understood -- awayand
A pathetic dreamer smile

Offline

#4 2013-06-05 13:18:07

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED]~/.bash_profile with startx not working

I'm not sure about the dbus-launch, but try removing the "&" from the end of the openbox-session line.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#5 2013-06-05 13:33:26

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 449

Re: [SOLVED]~/.bash_profile with startx not working

One point to skanky. And I think you don't need dbus-launch anymore. At least, I don't see it here anymore: https://wiki.archlinux.org/index.php/Openbox

By the way, are you sure your above file is called "~/.bashrc_profile" ?


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#6 2013-06-05 13:37:51

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED]~/.bash_profile with startx not working

scar wrote:

One point to skanky. And I think you don't need dbus-launch anymore. At least, I don't see it here anymore: https://wiki.archlinux.org/index.php/Openbox

By the way, are you sure your above file is called "~/.bashrc_profile" ?

My recollection was that it's not needed any more, but I know how unreliable that is.
Good catch on the file name. Funny how you read what you expect to read sometimes.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#7 2013-06-05 13:38:49

arcon
Member
Registered: 2013-05-27
Posts: 128

Re: [SOLVED]~/.bash_profile with startx not working

skanky wrote:

I'm not sure about the dbus-launch, but try removing the "&" from the end of the openbox-session line.

Thanks a lot skanky it worked. smile

scar wrote:

One point to skanky. And I think you don't need dbus-launch anymore. At least, I don't see it here anymore: https://wiki.archlinux.org/index.php/Openbox

By the way, are you sure your above file is called "~/.bashrc_profile" ?

that file is my .xinitrc(third post) and i used dbus-lanuch, i don't know why?? but i think because i am getting this error in my xession-errors:

startkde: Starting up...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

though it is kde's.

Last edited by arcon (2013-06-05 13:46:13)


The short cuts are only short because they don't actually go anywhere. -- Trilby
Nothing feels better than being understood -- awayand
A pathetic dreamer smile

Offline

#8 2013-06-05 13:46:39

scar
Member
From: Hungary
Registered: 2009-10-01
Posts: 449

Re: [SOLVED]~/.bash_profile with startx not working

By .bashrc_profile I meant the first file you posted. It should be called ~/.bash_profile.

So, your startx is working now?


“The future has already arrived. It's just not evenly distributed yet.”
― William Gibson

Offline

#9 2013-06-05 13:48:41

arcon
Member
Registered: 2013-05-27
Posts: 128

Re: [SOLVED]~/.bash_profile with startx not working

my mistake i make a hybrid of .xinitrc and .bash_profile(typo). yup it's working now thanks for replying. smile

Last edited by arcon (2013-06-05 14:43:00)


The short cuts are only short because they don't actually go anywhere. -- Trilby
Nothing feels better than being understood -- awayand
A pathetic dreamer smile

Offline

#10 2013-06-05 14:37:59

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: [SOLVED]~/.bash_profile with startx not working

Just to clarify: a dbus session instance is needed, but it is started in the /etc/X11/xinit/xinitrc.d/30-dbus script by the loop at the beginning of .xinitrc;
So it is not necessary to repeat the dbus-launch command with the exec line starting the WM/DE, when this loop is present.

Offline

#11 2013-06-05 15:11:43

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED]~/.bash_profile with startx not working

berbae wrote:

Just to clarify: a dbus session instance is needed, but it is started in the /etc/X11/xinit/xinitrc.d/30-dbus script by the loop at the beginning of .xinitrc;
So it is not necessary to repeat the dbus-launch command with the exec line starting the WM/DE, when this loop is present.

Thanks. smile


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

Board footer

Powered by FluxBB