Top Level Namespace
- Includes:
- SwingHelpers
Defined Under Namespace
Modules: CheckInstalledMac, ConvertThirtyFps, EightThree, MediaInfoParser, Muter, OCR, SensibleSwing, SubtitleProfanityFinder Classes: AutoWindowFinder, Blanker, EdlParser, File, FrameAccurate, KeyboardInput, MainWindow, MencoderWrapper, MplayerEdl, OverLayer, ScreenTracker, ShutdownHook, Storage, String, Symbol, Time, VLCProgrammer
Instance Method Summary collapse
-
#add_any_bundled_gems_to_load_path ⇒ Object
Copyright 2010, Roger Pack This file is part of Sensible Cinema.
- #at_exit2(&block) ⇒ Object
-
#kill_processes ⇒ Object
LODO add button if I would ever find this useful…
Instance Method Details
#add_any_bundled_gems_to_load_path ⇒ Object
Copyright 2010, Roger Pack This file is part of Sensible Cinema.
Sensible Cinema is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Sensible Cinema is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Sensible Cinema. If not, see <http://www.gnu.org/licenses/>.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/add_any_bundled_gems_to_load_path.rb', line 19 def add_any_bundled_gems_to_load_path raise 'no vendor dir?' unless File.directory? 'vendor' if File.directory? 'vendor/cache' Dir['vendor/**/lib'].sort.reverse.each{|lib_dir| # prefers newer versioned copies of gems in case I have duplicates $: << lib_dir } else require 'rubygems' # they'll need imagemagick installed, as well, currently end end |
#at_exit2(&block) ⇒ Object
13 14 15 16 |
# File 'lib/shutdown_kill.rb', line 13 def at_exit2( &block) hook = ShutdownHook.new( &block) java.lang.Runtime.getRuntime.addShutdownHook(java.lang.Thread.new( hook )) end |
#kill_processes ⇒ Object
LODO add button if I would ever find this useful…
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/shutdown_kill.rb', line 19 def kill_processes if OS.windows? # this prevents people from having two processes going at once...kind of like queueing them up... # system_original("taskkill /f /im mencoder.exe 2>NUL") # todo...is there a better way? # system_original("taskkill /f /im ffmpeg.exe 2>NUL") # system_original("taskkill /f /im smplayer_portable.exe 2>NUL") # system_original("taskkill /f /im mplayer.exe 2>NUL") end end |