LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2004, 11:32 AM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
.xsession script?


I want my freevo box to boot and auto login upon pressing the power button. I am using gdm to autologin, it works nice. I am using this script in my .xsession file
Code:
#!/bin/bash
/usr/bin/xvattr -a XV_COLORKEY -v 0 &
exec blackbox &
/usr/bin/freevo
it starts blackbox then freevo just like I want it to. Sometimes I just want to run mplayer directly(without freevo). If I exit out of freevo, it drops me out of blackbox also, then brings me back to my gdm login screen. I am not able to use a terminal in blackbox. I thouhgt maybe this is to do with my .xsession scrpt. Any suggestions would be appreciated.
 
Old 10-27-2004, 11:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you want to exec freevo before blackbox. a window manager will always happily pick up whatever's there, so should *always* be the last line, and not have an & at the end. cos when that script completes, so does X.
 
Old 10-27-2004, 12:02 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I changed my .xsession to this
Code:
#!/bin/bash
/usr/bin/xvattr -a XV_COLORKEY -v 0 &
exec /usr/bin/freevo
exec blackbox
it is still behaving the same way. If I exit freevo, it kicks me back to my gdm login screen. I just did this command from my other computer using ssh
Code:
 ps -A | grep blackbox
it appears blackbox is not running. That would make sence to my it is not falling back to blackbox, but to my gdm login screen.
 
Old 10-27-2004, 01:01 PM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
I got it to work usng this script

Code:
/usr/bin/xvattr -a XV_COLORKEY -v 0 &
/usr/bin/freevo &
exec blackbox
I removed the exec on the freevo line

Last edited by shanenin; 10-27-2004 at 01:06 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
.xsession script? shanenin Linux - Software 3 10-26-2004 12:14 PM
Where is ~/.xsession ? Frybyte Linux - General 4 10-20-2004 04:44 PM
.xsession LoONeYChIKuN Linux - Newbie 2 10-18-2004 11:59 PM
Invoke script on xsession exit? comp12345 Linux - Software 1 06-27-2004 10:27 PM
X11 doesn't use Xsession jogurt666 Debian 3 03-09-2004 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:18 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