LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-25-2015, 02:13 PM   #1
NDR008
Member
 
Registered: Nov 2006
Location: (Bristol or Coventry) (UK) or Malta
Distribution: openSUSE 11.0
Posts: 173

Rep: Reputation: 30
Question Equivalent of .Xsession


After years of being out of programming, linux, and almost anything technical, I found myself playing with a Raspberry Pi in hope that it stimulates my mind and encourages my daughter to experiment as I once used to.

I recently installed a software called Sugar, which is part of the 1 child 1 laptop project.

Anyway, if I add the line sugar to .Xsession, when I startx, then I will have the sugar "front-end" running over as fullscreen.

If I do not add that line, then Rasbian's default desktop environment loads.

If I load sugar from within that desktop, then sugar will run almost fullscreen (it will not use-up the top panel/task-bar).

So, the question is, can I use an appended command when starting X, to choose if sugar loads or not?

I want to be able to choose .Xsession with the sugar line added. (of course, without rename .Xsession files, etc).

Might make a script to name rename it I suppose, but would like something neater.

Thanks.
 
Old 12-27-2015, 06:13 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
please post the contents of your Xsession file.
 
Old 12-28-2015, 02:32 PM   #3
NDR008
Member
 
Registered: Nov 2006
Location: (Bristol or Coventry) (UK) or Malta
Distribution: openSUSE 11.0
Posts: 173

Original Poster
Rep: Reputation: 30
.Xsession file just had 1 line:

sugar (because I added it)

Later I removed it because I did not want sugar to load every single time.
 
Old 12-28-2015, 08:10 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i see.
i think you can just delete that file.

Quote:
Originally Posted by NDR008 View Post
So, the question is, can I use an appended command when starting X, to choose if sugar loads or not?
you can start X with e.g.
Code:
startx /usr/bin/sugar
and i think you can also use xinit directly.
but please verify by reading documentation for both commands.
 
  


Reply

Tags
raspberry, raspbian, sugar, xsession



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what are files .xsession-errors and .xsession-errors.old can they be deleted? cliffm Linux - Newbie 2 10-20-2012 11:30 AM
.xsession equivalent? moe_b59 Linux - Newbie 1 03-03-2006 12:14 PM
xsession warning sharadshankar Debian 2 06-10-2005 04:11 AM
Where is ~/.xsession ? Frybyte Linux - General 4 10-20-2004 04:44 PM
.xsession LoONeYChIKuN Linux - Newbie 2 10-18-2004 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration