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 07-11-2007, 10:01 PM   #1
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Rep: Reputation: 15
x windows questions?


ive been wondering if it would be possible to write a script that the terminal would read at startup or after login that would load a program gui before it loaded the windows manager
 
Old 07-11-2007, 10:29 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 31
I don't know as how that would work too well. The window manager is responsible for ... well, you can tell what the window manager is responsible for by running one. It's ultimately responsible for placing top-level windows, among other things.

By "load a program gui", you mean, I presume, running a program which uses the X Window (no s) system. That won't work too well unless at least X itself is running. You want to run X without a window manager?

Maybe we can get a handle on what should happen if you tell us why you want to do this.
 
Old 07-12-2007, 11:53 AM   #3
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
yea i want x windows running with out a manager but i want the gui program to auto start on login
 
Old 07-12-2007, 11:58 AM   #4
arcanex
Member
 
Registered: Mar 2007
Posts: 41

Rep: Reputation: 15
Edit your ~/.xinitrc

It might depend on your distro/setup, but ~/.xinitrc is usually where you put programs you want to launch right after X starts running. Your window manager should be the last program on ~/.xinitrc; simply insert commands before the WM gets launched.
 
Old 07-13-2007, 11:42 AM   #5
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
ok i tried editing the xinitrc file all it had init was . /etc/X11/Xsession that was th eonly action line there was the otheres were just starting the bash and an explation of what it was doing like global setting for x session i tried eraseing that and then added line exec /home/stycaptain/Sonbird/Songbird to see if that would launch Songbird but it just loaded the same ol thing that it always loads and song bird didnt load so i went into xsession file delted it and just put in the same line there and it loaded the same old thing it always loads i moved the orignal xsession file into /home/downloads i dunno if it loaded the original from there or not or wat happened cause i thought that when you edit the xsession file it will change ur desktop enviorment and nothing changed

Last edited by bloodyscript; 07-13-2007 at 11:45 AM.
 
Old 07-13-2007, 12:02 PM   #6
arcanex
Member
 
Registered: Mar 2007
Posts: 41

Rep: Reputation: 15
Try ~/.xsession


Avoid editing your system files in /etc; for changing your window manager, you should only have to edit some files in your home directory. As you can see, it can be confusing though.
 
Old 07-14-2007, 08:15 AM   #7
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
extermly strange nothing happend or changed when i delted the x session file and xinitrc file i delted them becuase i changed both them and nothing happened so wh\y would it stay the same when their both gone now?
 
Old 07-15-2007, 01:16 AM   #8
arcanex
Member
 
Registered: Mar 2007
Posts: 41

Rep: Reputation: 15
Yeah, I don't know which files to look at next. You should start looking at documentation for your distro/login manager.
 
Old 07-15-2007, 04:33 AM   #9
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Most distros run a display manager, commonly either kdm or gdm. I would be looking at that. I can't be more specific because I'm not completely clear on what you want to do. You say "run at login" but what are you logging into? When you login using X, you're going to get a window manager, but you say you want to run without one.

Without one, I don't know what you log into. A console? An xterm?
 
Old 07-15-2007, 08:24 AM   #10
bloodyscript
Member
 
Registered: Apr 2006
Distribution: Sabayon linux 5.1
Posts: 182

Original Poster
Rep: Reputation: 15
i know it can be done i belive if i edit the xinitrc file ill beable to load the application in a gui at login with out a de but if i edit it so say firefox loads up do i have to type a command at command line when i log in or will it just load? and will the xsession interfere or will it not because i wont have a de installed

Last edited by bloodyscript; 07-15-2007 at 08:26 AM.
 
  


Reply



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
Windows Questions XavierP LQ Suggestions & Feedback 17 03-07-2023 10:24 AM
Questions about X-Windows triverse SUSE / openSUSE 5 03-31-2005 10:28 PM
Windows Questions? mikedeatworld General 17 12-21-2004 05:52 PM
Windows Questions emailssent General 20 10-08-2004 07:32 AM
X Windows questions ommy Linux - Software 3 05-28-2004 03:17 PM

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

All times are GMT -5. The time now is 04:00 PM.

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