LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-06-2009, 08:57 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 57
Problem with Skype, autorestart, at boot for the .fluxbox/startup


Hello,

At gdm autologin, my skype is started via .fluxbox/startup, and where this line can be found:

Quote:
cd ; sh myskyperestartwhencrash.sh & exec fluxbox
and in $HOME, my script myskyperestartwhencrash.sh contains:
Code:
#!/bin/sh
killall -e skype
sleep 2s
while [ 1 ]  ; do
killall -e skype
sleep 2s
killall -9 -e skypsleep 2s
killall -9 -e skype
echo "Start skype"
xterm -e skype
sleep 2s
done
the script works if called from the console, but kills skype all the time if called from the .fluxbox/startup or in other words a startup of flubox, why?
 
Old 07-07-2009, 04:14 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
sometimes, the DISPLAY env is not set during the very start of the WM. So,
the command
xterm -e skype
would essentially be failing and constantly killing even the skype which started from the WM.
can you set the DISPLAY env variable and see.

Also, a good place to see the output of these issues are .xsession-errors file in your home dir.
All the output which you dislike to see in the X windows goes here. This file would have the
clue on what is happening.
 
  


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
Fluxbox Startup Problem Xian Slackware 11 10-01-2010 08:43 AM
Skype loads 3 times on startup!! anthonylane13 Slackware 8 03-27-2009 05:50 PM
AutoRestart a Server dimmak Linux - Games 0 07-08-2005 05:25 PM
Make Red Hat autorestart IlyaZ Linux - Newbie 4 04-22-2004 10:02 AM
Squid Problem!!! How to startup on boot... kbrian38 Linux - Newbie 3 01-09-2004 01:00 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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