dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Replacement desktop?

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

dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Re: Replacement desktop?

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

User avatar
RaTTuS
Posts: 9490
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Replacement desktop?

Tue Aug 06, 2013 1:48 pm

what desktop ,
I don't understand what you want to change
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Re: Replacement desktop?

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

User avatar
duberry
Posts: 379
Joined: Mon Jan 28, 2013 10:44 pm
Location: standing on a planet that's evolving. And revolving at nine hundred miles an hour

Re: Replacement desktop?

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

ghans
Posts: 7361
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Replacement desktop?

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

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Replacement desktop?

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)
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Re: Replacement desktop?

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

dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Re: Replacement desktop?

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

Return to “Other projects”

Who is online

Users browsing this forum: No registered users and 7 guests