diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-02 16:25:16 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-02 16:25:16 +0000 |
commit | 842be9287ce8c073cf20412b342cee742232c59b (patch) | |
tree | c2455ee2635731a40fa79749dbef84ee0a505345 /gtk2_ardour/main.cc | |
parent | 1b0b7849eea034f8809dea31419159724386c2db (diff) |
unset GTK_RC_FILES to prevent the system from messing with a bundled install
git-svn-id: svn://localhost/ardour2/branches/3.0@8677 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r-- | gtk2_ardour/main.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index ce67e7d157..c39a8f26df 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -239,6 +239,11 @@ fixup_bundle_environment (int, char* []) setenv ("GTK_PATH", path.c_str(), 1); + /* unset GTK_RC_FILES so that we only load the RC files that we define + */ + + unsetenv ("GTK_RC_FILES"); + if (!ARDOUR::translations_are_disabled ()) { path = dir_path; @@ -432,6 +437,11 @@ fixup_bundle_environment (int /*argc*/, char* argv[]) setenv ("GTK_PATH", path.c_str(), 1); + /* unset GTK_RC_FILES so that we only load the RC files that we define + */ + + unsetenv ("GTK_RC_FILES"); + if (!ARDOUR::translations_are_disabled ()) { path = dir_path; path += "/share/locale"; |