LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2010, 01:25 PM   #1
crakie
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
Script works in shell, but will not autostart


I have this extremely simple script called startmyth:

Code:
#!/bin/bash
sleep 10
export DISPLAY=:0.1
exec /usr/bin/mythfrontend &
when I execute it as ./startmyth, it works fine. But when added to Gnome's startup applications (System > Preferences > Startup Applications), Mythtv does not start! What gives?
 
Old 06-03-2010, 05:55 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Just making sure.... you did use the absolute path to the script not './startmyth' ?
 
Old 06-03-2010, 05:59 PM   #3
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
The display :0.1 does not exist until you start a gnome-terminal session. Try
Code:
export DISPLAY=:0
 
Old 06-04-2010, 04:40 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,372

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
I almost feel a permission deal but I don't have any reason as to why.
 
  


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
KDE 4 Autostart Program Bash Script to Write Autostart Bash Scripts for You! jdmcdaniel3 SUSE / openSUSE 1 05-03-2010 07:17 AM
Shell Script works different from cron necrolin Programming 2 05-07-2009 10:52 AM
Shell script adding autostart gnome script Coolrunr Programming 3 01-01-2009 03:23 PM
my script shell not works automaticaly sobo32 Red Hat 13 04-21-2008 04:34 AM
Shell script works on RH 7.2 but not on RH ES brian Red Hat 1 08-31-2004 12:55 PM


All times are GMT -5. The time now is 11: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration