Replacement desktop?


9 posts
by dan3008 » Mon Aug 05, 2013 5:46 pm
Hi everyone

I've got a menu system working, and now I want to implement it on my pi for testing. The problem I am having, is that its an X application, but i want it to replace the normal desktop in raspien.

In windows, I can change the shell easily, but i dont know how to do this in raspien, or arch, or any linux. Any hints would be gratiously recived.

Thanks

Dan
dan3008 wrote:Pays your money, takes your choice
Posts: 950
Joined: Wed Aug 15, 2012 1:05 pm
by dan3008 » Tue Aug 06, 2013 1:42 pm
Is this even doable? I've been looking at using open box, or xinit but not having much luck yet :/
dan3008 wrote:Pays your money, takes your choice
Posts: 950
Joined: Wed Aug 15, 2012 1:05 pm
by RaTTuS » Tue Aug 06, 2013 1:48 pm
what desktop ,
I don't understand what you want to change
http://www.catb.org/esr/faqs/smart-questions.html <- ask smart Questions
"That's not right, the badgers have moved the goalposts."
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
User avatar
Posts: 5629
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by dan3008 » Tue Aug 06, 2013 2:02 pm
The desktop enviroment. When you start the X server using startX on raspien, you are met with a wallpaper, menu and desktop icons. Thats what i want to replace. I have a new menu system that I want to replace the default. And i'm not sure how to do it.

In windows its called the shell, and can be changed through a simple regestery change, from wndows explorer to whatever you want
dan3008 wrote:Pays your money, takes your choice
Posts: 950
Joined: Wed Aug 15, 2012 1:05 pm
by duberry » Tue Aug 06, 2013 3:02 pm
i think the desktop used in raspbian is lxde aka "Lightweight X11 Desktop Environment"
lend me your arms, fast as thunderbolts, for a pillow on my journey.
If the environment was a bank, would it be too big to fail
so long; and thanks for all the pi
User avatar
Posts: 380
Joined: Mon Jan 28, 2013 10:44 pm
Location: standing on a planet that's evolving. And revolving at nine hundred miles an hour
by ghans » Tue Aug 06, 2013 3:23 pm
startx starts xinit , and xinit executes whatever is in your
.xinitrc ( a hidden file in your home directory).


So modify your .xinitrc to execute your program.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org
Posts: 4888
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany
by Joe Schmoe » Tue Aug 06, 2013 3:46 pm
ghans wrote:startx starts xinit , and xinit executes whatever is in your
.xinitrc ( a hidden file in your home directory).


So modify your .xinitrc to execute your program.


ghans


To amplify on this, this is the contents of my .xinitrc file (on a Pi/Raspbian system):

# This file has 5 lines in it (including this one)
xsetroot -solid pink
xclock &
xscreensaver &
openbox & exec lxterminal

Notes:
1) Make sure .xinitrc is executable (chmod +x ~/.xinitrc)
2) Make sure "openbox" is installed (apt-get install openbox)
Oh, how I wish that the signature facility on this board weren't so broken.

It is broken in that every time you change your signature, all of your posts reflect the change, not just those going forward.
Posts: 2939
Joined: Sun Jan 15, 2012 1:11 pm
by dan3008 » Tue Aug 06, 2013 3:48 pm
Ah brilliant :D

thank you Ghans :)

I'm glad its that easy really :) I knew it must be, but my linux foo is not what it needs to be, but i'm getting there :)

thanks for the aditional help Joe
dan3008 wrote:Pays your money, takes your choice
Posts: 950
Joined: Wed Aug 15, 2012 1:05 pm
by dan3008 » Tue Aug 06, 2013 4:10 pm
Thanks again everyone

I've had a play and it seems to be working :) Need to have a proper play, and actually get my menu up and running :)

thanks a million
dan3008 wrote:Pays your money, takes your choice
Posts: 950
Joined: Wed Aug 15, 2012 1:05 pm