Commit Graph

30 Commits

Author SHA1 Message Date
gaaned92 9e82ace409 Issue #2716 - Windows: Rawtherapee plugin cannot be installed
On Windows, prevent RawTherapee from opening a console window
2019-01-03 14:10:27 +01:00
Simon Mueller 6a5023a38a Issue #2179: Get rid of the win32_use_hkcu flag.
Simply always check HKCU first. If that lookup did not yield any result,
fall back to HKLM.
2018-09-19 15:01:46 +02:00
Simon Mueller 829ca6583d Issue #2179: Make file_rawtherapee use the registry value that is...
... provided by RawTherapee's installer (version 5.5+).

See https://github.com/Beep6581/RawTherapee/issues/4783.
This patch required a small change to file_raw_get_executable_path
because the RawTherapee installer is supposed to work without admin
privileges and therefore can't write to HKLM.

Reviewer's note (Jehan): RawTherapee's installer does not add the
registry entry yet. We assume the upstream bug report will end up doing
so (someone has to make the first step!). :-)
2018-09-10 14:16:02 +02:00
Jehan 0832bbd771 plug-ins: replace s/printf/g_printf/
When cross-compiling, I got various linking errors for printf() calls:
> undefined reference to `libintl_printf'

I am unsure why, since this is not recent code, and it used to build
fine with mingw64 compilers (last I cross-built, which is many months
ago). Anyway g_printf() works fine, all necessary libs are already
linked, and it is supposed to be a synonym. So let's just go the easy
way and use g_printf() only.

(cherry picked from commit c49afa4f84)
2018-08-12 22:53:24 +02:00
Michael Natterer 5f700549e7 Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
Jehan 870ca6334d plug-ins: install plug-ins in subfolder.
I am going to forbid plug-ins from being installed directly in the root
of the plug-ins/ directory. They will have to be installed in a
subdirectory named the same as the entry point binary.
This may seem useless for our core plug-ins which are nearly all
self-contained in single binaries, but this is actually a necessary
restriction to eliminate totally the DLL hell issue on Windows. Moving
core plug-ins in subfolders is only a necessary consequence for it.
2018-05-20 21:06:35 +02:00
Michael Natterer 3b950f6177 plug-ins: some cleaup in file-raw, mostly formatting 2018-01-05 15:31:57 +01:00
Tobias Ellinghaus 313d8c2876
file-darktable: Add more debug prints 2018-01-05 14:21:59 +01:00
Jehan 3d5732e23e plug-ins: some minor coding style fix.
Just some missing spaces between function name and parenthese which I
came across.
2017-12-20 15:12:10 +01:00
Jehan 36daa6dba8 plug-ins: s/Windows.h/windows.h/.
I just cross-compiled for Windows after a long time. The header file is
all lowercase on a cross-compilation MinGW-w64 environment. I'm not sure
what is the case on Windows, but since this platform is case-insensitive
for file names, I believe this won't break anything on native builds.
2017-12-09 18:52:51 +01:00
Jehan 1e78d3d249 plug-ins: make Darktable version checking more generic.
I realize that on Fedora 27, the output of `darktable --version` is:
"this is darktable darktable-2.2.5-4.fc27"
This is different from the expected output in our plug-in ("this is
darktable 2.2.5"). I assume this version string can be customized and
distribution packagers will use the capability. So a regular expression,
in a slightly more flexible fashion would be better. I still assume that
the version string with start with "this is darktable", but then I
accept any non-number string until I reach a common major.minor.patch
version-looking string.
2017-11-26 03:56:55 +01:00
Tobias Ellinghaus c10c640451
plug-ins: Hide darktable debug output
Only show debugging messages from the darktable raw loader when the
environment variable DARKTABLE_DEBUG is set.
2017-11-20 12:48:47 +01:00
Michael Natterer f47df72dc6 plug-ins: link file-raw aginst libgimpcolor and libgimpconfig explicitly
otherwise, implicit transitive linking will pull in the installed
libs, not the ones from the source tree, and the build can fail when
any of the libs' APIs changes.

Also remove some useless #includes.
2017-10-09 18:33:02 +02:00
Jehan 54b4d1e0a2 Bug 787326 - MacOS's CFSTR() does not work with const variables.
This is untested, written from gathering information on the web. MacOS
people, please try and compile GIMP!
2017-09-09 14:39:05 +02:00
Tobias Ellinghaus b86b19235e
darktable: Fix typo in last commit 2017-09-04 14:08:31 +02:00
Tobias Ellinghaus 82dd06720d
darktable: Add more shell escaping for Windows
Apparently Lua chokes when it sees c:\darktable\... as a path to a script,
thinking the '\d' was an escape sequence. Thus we have to add an extra
layer of escaping. Houdini like. Who came up with the brilliant idea to
use '\' as a separator anyway? So much pain just to be different?
2017-09-04 12:56:34 +02:00
Tobias Ellinghaus 855f2f1cbe
plug-ins: Fix finding raw loaders on Win/OSX
Without including gdk.h the #defines to determine the system are not
available, resulting in no platform specific code being compiled in.
2017-09-04 11:59:33 +02:00
Tobias Ellinghaus 87dbc05cbd
darktable: add info message to dt when started
Tell users that they just have to close darktable to export the image
and don't need to do anything.
2017-08-12 21:55:54 +02:00
Michael Natterer 42f0db190f plug-ins: rename file-raw/file-formats.h to file-raw/file-raw-formats.h 2017-07-30 18:35:20 +02:00
Jehan 5ea831b99d plug-ins: add minimum version information for RawTherapee and Darktable.
Otherwise people will install older versions and won't understand why
the plug-ins won't work. It's just a little annoying that these version
strings have to be hardcoded this way. We could add macros in a header,
but that would be only half a solution. Ideally we'd rather have some
discovery logics at some point.
2017-07-29 01:41:13 +02:00
Alberto Griggio 87bbba5cea plug-ins: fix the RawTherapee version test. 2017-07-29 01:26:01 +02:00
Jehan b3eb876069 plug-ins: add some MacOS support to find RawTherapee.
Hopefully it works, since that's untested (I have no MacOS access). This
is mostly code from file-darktable.c, made generic and factorized into
file-raw-utils.[ch]. At least it still builds and work fine on Linux.
I used the CFBundleIdentifier from `tools/osx/Info.plist.in` in
RawTherapee code. I didn't add a Win32 registry key base though, since I
couldn't find any relevant data for this in RawTherapee code.
2017-07-29 01:26:01 +02:00
Jehan 7f85244bcc plug-ins: some alignment cleaning. 2017-07-29 01:26:01 +02:00
Michael Natterer 713995e27d Bug 784261 - Have some nice error message for formats known to work...
...with known plugins

Add new plug-in file-raw-placeholder.c that registers itself for
loading all RAW formats from file-raw/file-formats.h, but does nothing
except returning an error message pointing to darktable and
RawTherapee.

When no real RAW loader is installed, this plug-in is selected
automatically as RAW loader, otherwise the first installed RAW loader
is used. Selecting another in prefs still works as before.
2017-07-24 22:19:53 +02:00
Michael Natterer b6f5bd2f25 plug-ins: update .gitignore in file-raw/ 2017-07-24 20:59:28 +02:00
Michael Natterer 87438c885a plug-ins: merge file-rawtherapee/ into file-raw/
and use the same file-formats.h
2017-07-24 20:58:25 +02:00
Michael Natterer 0369ac9b9f plug-ins: remove all TIFF extensions and magics from file-raw/file-formats.h 2017-07-24 20:44:22 +02:00
Michael Natterer 59558f8778 plug-ins: replace file-raw/file-formats.h's "darktable" strings by "%s"
and assemble the actual strings dynamically, substituting "draktable".
2017-07-24 20:41:41 +02:00
Michael Natterer fea66e027c plug-ins: prefix file-darktable's .lua files with "file-darktable-"
and change their install directory to "file-raw".
2017-07-24 20:32:02 +02:00
Michael Natterer a653a477d1 plug-ins: rename file-darktable/ to file-raw/
It will soon host all raw loader plug-ins.
2017-07-24 20:26:18 +02:00