You are not logged in.

#1 2012-10-17 01:14:32

apgrnt
Member
Registered: 2012-10-01
Posts: 8

xinitrc issue

This is my .xinitrc file.


remind -z0 -k'gxmessage -title "reminder" %s &' ~/.reminders &

exec ck-launch-session  startlxde

I'm not sure what the issue is but when I use the startx command to start lxde the remind command is not getting run and I don't have the ability to shutdown, restart, suspend or hibernate my machine using my DE.

I looked around and seen people with similar problems but never found a good answer. If anyone knows how to solve this or could point me in the right direction it be appreciated.

Offline

#2 2012-10-17 01:35:33

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Offline

#3 2012-10-17 01:36:30

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,548

Re: xinitrc issue

Could it be that they need to be flipped so that you have a X client to put your reminder on?
You need to start your WM/DE before starting any X clients.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2012-10-17 01:48:43

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: xinitrc issue

It's fine to run X clients before the wm... Sorry, I don't now that app so cant help...

Offline

#5 2012-10-17 14:47:43

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,548

Re: xinitrc issue

mhertz wrote:

It's fine to run X clients before the wm... Sorry, I don't now that app so cant help...

You have to have an X session of some kind before using X clients, not necessarily the WM/DE.  It won't work from the console if it is a(n) X application.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2012-10-17 15:11:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: xinitrc issue

An x session is started before xinitrc is executed.  Just look at the default xinitrc for twm that starts xterms and xclock before the window manager.

One would not be able to launch client programs from xinitrc after the window manager as they wouldn't execute until after the window manager was exited - they would not execute at all if the window manager was launched with an "exec" command.

Last edited by Trilby (2012-10-17 15:14:38)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2012-10-18 17:42:37

apgrnt
Member
Registered: 2012-10-01
Posts: 8

Re: xinitrc issue

I know that the remind command should work when put in xinitrc because I got the idea from this
http://www.roaringpenguin.com/wiki/inde … use_case_1
I can also start other programs, for example if i put libreoffice in there, boom libreoffice starts up when i run startx.

I also know the command works because when i run it in a console after i start lxde it runs fine.

Thanks mhertz for linking me to the lxde wiki but I looked at that before and it didn't help. like i said on my other computer "exec ck-launch-session  startlxde" does what it is supposed to and lets me shutdown from the DE but on my main laptop it's not working. It is a minor issue but I want to work it out.

Anyone got any ideas because I'm out?

Offline

#8 2012-10-18 18:06:49

apgrnt
Member
Registered: 2012-10-01
Posts: 8

Re: xinitrc issue

I fixed the remind problem in the xinitrc...... not totally sure how.....

still want to get shutdown from my DE but small fish.

Offline

#9 2012-10-19 14:27:13

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,548

Re: xinitrc issue

If the window manager has a way of running processes on startup, place it in there, xinitrc shouldn't really be anymore than just the command to start the window manager, and then there was twm.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB