about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--data/screensaver/clock.rb (renamed from code/screensaver/clock.rb)0
-rwxr-xr-xranger.rb19
2 files changed, 5 insertions, 14 deletions
diff --git a/code/screensaver/clock.rb b/data/screensaver/clock.rb
index 6289c809..6289c809 100644
--- a/code/screensaver/clock.rb
+++ b/data/screensaver/clock.rb
diff --git a/ranger.rb b/ranger.rb
index b9dd8e7d..5b074317 100755
--- a/ranger.rb
+++ b/ranger.rb
@@ -10,14 +10,8 @@ LOG_LEVEL = 3
 #LOG_LEVEL = 0
 
 require 'pathname'
-
-def fj( *args ) File.join( *args ) end
-
 $: << MYDIR = File.dirname(Pathname.new(__FILE__).realpath)
 
-
-#SCREENSAVER = fj MYDIR, 'code', 'screensaver', 'clock.rb'
-
 EVIL = false
 
 PID = Process.pid
@@ -52,6 +46,8 @@ for file in Dir["#{MYDIR}/code/**/*.rb"]
 	require file
 end
 
+require 'data/screensaver/clock.rb'
+
 unless ARGV.empty? or File.directory?(pwd)
 	exec(Fm.getfilehandler_frompath(pwd))
 end
@@ -61,14 +57,9 @@ include Debug
 
 ERROR_STREAM = File.open('/tmp/errorlog', 'a')
 
-#def log(obj)
-#	$stdout = ERROR_STREAM
-#	pp caller
-#	pp obj
-#	$stdout.flush
-#	$stdout = STDOUT
-#	obj
-#end
+Signal.trap(Scheduler::UPDATE_SIGNAL) do
+	Fm.refresh
+end
 
 begin
 	Fm.initialize( pwd )