Hello!
I created a little FullScreen app to show me the current network
speed. If I not touch the keyboard and the mouse, the ScreeSaver is
coming up after three minutes and cover the application. Yes, it's
normally, because I set the time in the System Preferences.
To prevent this, I calling a shell command int the application "Open"
method:
defaults -currentHost write com.apple.screensaver idleTime 0
It's disables the ScreenSaver. On the App's "Close" method, I simply
put this command:
defaults -currentHost write com.apple.screensaver idleTime 180
But here is a problem. If start and quit the application, the
ScreenSaver wont start up after 3 minutes of inactivity. If I move the
mouse to a corner, witch is set to start the ScreenSaver, it will run.
I typed into the terminal:
defaults -currentHost read com.apple.screensaver idleTime
The result is: 180. Everithing looks OK but something wrong. The
ScreenSaver wont start, until:
1, restart
2, open System Preferences -> Desktop & Screen Saver -> Screen Saver
and move the "Start Screen Saver" Slider to any position.
The System why not notice the second command? Can Somebody tell me,
where to search the problem? I have to restart a System (background)
application or use another workaround? Is there possible to run a
fullScreen application witch is disables the ScreenSaver like bigger
games (eg. Medal of Honor)?
System: Mac OS X 10.4.8
Thank You!


|