Added support for using RawTherapee as a GIMP plugin for opening RAW files

plugin code taken from Darktable
This commit is contained in:
Alberto Griggio
2017-05-18 15:59:56 +02:00
parent 3999bf179e
commit 54b66b7736
8 changed files with 876 additions and 13 deletions

View File

@@ -190,8 +190,13 @@ void FilePanel::init ()
dirBrowser->fillDirTree ();
placesBrowser->refreshPlacesList ();
if (argv1 != "" && Glib::file_test (argv1, Glib::FILE_TEST_IS_DIR)) {
dirBrowser->open (argv1);
//if (argv1 != "" && Glib::file_test (argv1, Glib::FILE_TEST_IS_DIR)) {
if (!argv1.empty() && Glib::file_test (argv1, Glib::FILE_TEST_EXISTS)) {
Glib::ustring d(argv1);
if (!Glib::file_test(d, Glib::FILE_TEST_IS_DIR)) {
d = Glib::path_get_dirname(d);
}
dirBrowser->open(d);
} else {
if (options.startupDir == STARTUPDIR_HOME) {
dirBrowser->open (PlacesBrowser::userPicturesDir ());