Does anyone know if the devs are planning on fixing the issue with macOS where I can’t pass filenames for Darktable to open on the command line? Darktable 5.0 broke this very important feature for me.
Cheers,
Mike
Does anyone know if the devs are planning on fixing the issue with macOS where I can’t pass filenames for Darktable to open on the command line? Darktable 5.0 broke this very important feature for me.
Cheers,
Mike
How are you passing images to dt? Is there a bug open already for this? If not, you should open one.
I opened a bug 2 days after 5.0 was released, and it was closed after a few hours. The devs said that it’s because of a change in macOS. Ok, I get that Apple loves to change stuff and they cross-platform way Darktable was doing it might have broken, but opening a program and passing it a file is very, very basic stuff.
Cheers,
Mike
Well if there isn’t an open bug, I’d guess there isn’t a lot of hope of it being fixed.
If I were you of reopen it.
I think it is clear, there is no known way to fix it and avoid a crash on import.
Hi @g-man,
I think it is clear, there is no known way to fix it and avoid a crash on import.
No known way? It works on Linux, just not macOS. “No known way” to me implies that macOS programs can’t take filenames on the command line, which we all know is possible. Additionally, this worked in previous versions of Darktable, and still works when running an older version of Darktable on new macOS builds.
I think it’s a more a matter of the devs don’t want to than they can’t, which is very disappointing for us that love DT as our RAW editor, but prefer to use a different program for our DAM.
Cheers,
Mike
linux isn’t macos and vice versa. If you have a solution then coding helps, blaming doesn’t …
And the replies to the bug reports did never say that it wasn’t possible to do that…
What is not possible, apparently, is distinguish between one or several files being passed. (see also this bug report : dropping multiple files on dt lead to a crash…)
So you can either have dropped files open in lighttable, or get a crash when you drop more than one file.
A side effect of this seems to be that you cannot open a file to the darkroom through the finder.
As they do the development in their spare time, what gets done is up to them to decide.
And you may at least show them enough respect to believe them when they say they can’t fix something… Otherwise, don’t be surprised when macOS support just stops.
I think your accusation without any fact is inappropriate. The dev did the best he could with the knowledge he has. I think we currently only have one Mac developer. If you know of a way to accomplish the task, please share it or do a PR.
Hi @g-man,
I think your accusation without any fact is inappropriate. The dev did the best he could with the knowledge he has. I think we currently only have one Mac developer. If you know of a way to accomplish the task, please share it or do a PR.
Only one mac dev does surprise me.
I’m cloning the repo now to see what I can do. Even if we can pass a single file or a directory on the command line that would be a great help.
My idea is parsing the command line params and then checking if the file exists. If there are multiple files passed on the command line and they can’t be parsed into individual filenames/paths then the check to see if it exists should fail. If the exists call succeeds, I’ll then check the directory bit to see if it’s a file or a dir. I’ll know more once I dig into the code.
Cheers,
Mike
Hi @g-man ,
Do you know who the macOS dev is on DT? Any chance you can connect us? I think I have 90% of the fix done. I’m hitting one last issue, and I think someone who is much more familiar with the code might be able to help.
Cheers,
Mike
He replied to your GitHub issue. I think you should just reply to that issue with your proposal. If you have a PR, link it to the issue too.
Awesome. Thx.
Hi @g-man,
He replied to your GitHub issue. I think you should just reply to that issue with your proposal. If you have a PR, link it to the issue too.
PR submitted. I tested every issue linked to the original issue by using the repro steps in the issue. Everything passed, so I’m hoping the PR is approved.
I’ll go back to writing more AI for digiKam now…
Cheers,
Mike
I saw it. Now we need some Mac testers.