WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: hacking .X.d  (Read 9601 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: hacking .X.d
« Reply #30 on: November 11, 2010, 05:17:12 PM »
iptables twice?
The only barriers that can stop you are the ones you create yourself.

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: hacking .X.d
« Reply #31 on: November 11, 2010, 06:49:15 PM »

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: hacking .X.d
« Reply #32 on: November 12, 2010, 06:31:53 PM »
One more alternative: the waitForX binary waits for X to start. You could include this line (or something similar) in bootlocal.sh to wait for X to start before loading your extensions:
(/usr/bin/waitforX; [ -f /home/tc/.startup ] && home/tc/.startup) &

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: hacking .X.d
« Reply #33 on: November 12, 2010, 10:35:19 PM »
No, you cannot wait for X in bootlocal.sh, as this runs before the user is logged in.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: hacking .X.d
« Reply #34 on: November 12, 2010, 11:36:13 PM »
Well, see, that's what I get for posting without actually trying it first. I typically include the caveat, "I haven't tried this ..." but I was lazy. It does work, however, if you change waitforX to: su -c "/usr/bin/waitforX" tc. :)

I'd not seen anyone examine methods for starting X quicker, though, so I found this topic interesting.