Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set APP_ROOT in bin/vimmate so that .glade files are found - must mov…

…e somewhere else
  • Loading branch information...
commit 56c4b52a5f116b543e26cddab5feea913dad3487 1 parent 2ee1849
@niklas authored
Showing with 5 additions and 3 deletions.
  1. +4 −2 bin/vimmate
  2. +1 −1  lib/active_window/application.rb
View
6 bin/vimmate
@@ -38,7 +38,10 @@ end
# We fork to give back the shell to the user, like Vim
fork do
- require File.join( File.dirname(__FILE__), '../config/environment' )
+ # TODO set this in activewindow.. but how?
+ APP_ROOT = File.expand_path( File.join( File.dirname(__FILE__), '..' ) )
+ PROGRAM_NAME = 'vim_mate'
+ require File.join( APP_ROOT, 'config/environment' )
Thread.abort_on_exception = true
class VimMateApp < ActiveWindow::Application
@@ -81,7 +84,6 @@ fork do
end
end
- PROGRAM_NAME = 'vim_mate'
app = VimMateApp.new(:title => 'VimMate', :main_window => 'VimMate', :excludes => excludes)
app.start
View
2  lib/active_window/application.rb
@@ -115,7 +115,7 @@ def find_glade
end
def views_directory
- File.expand_path File.join(File.dirname($0), '..', 'views')
+ File.join(APP_ROOT, 'views')
end
def define_widget_readers
Please sign in to comment.
Something went wrong with that request. Please try again.