Skip to content

Commit 2110d28

Browse files
committed
Use TM_APP_IDENTIFIER to find the preference file.
1 parent 2701828 commit 2110d28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Support/bin/db_browser_lib.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def html(subtitle = nil)
188188

189189
def get_connection_settings(options)
190190
begin
191-
plist = open(File.expand_path('~/Library/Preferences/com.macromates.textmate.plist')) { |io| OSX::PropertyList.load(io) }
191+
plist = open(File.expand_path("~/Library/Preferences/#{ENV['TM_APP_IDENTIFIER'] || 'com.macromates.textmate'}.plist")) { |io| OSX::PropertyList.load(io) }
192192

193193
unless connection = plist['SQL Connections'].find { |conn| conn['title'] == ENV['TM_SQL_CONNECTION'] }
194194
connection = plist['SQL Connections'][plist['SQL Active Connection'].first.to_i]

0 commit comments

Comments
 (0)