https://bugs.kde.org/show_bug.cgi?id=513819

            Bug ID: 513819
           Summary: Scripting plugin does not work at all in Windows as no
                    environmental variables populated with filenames
    Classification: Applications
           Product: digikam
      Version First 8.8.0
       Reported In:
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: BatchQueueManager-Plugins
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY
The scripting plugin is not populating the environmental variables INPUT or
OUTPUT which contain the names of the file to be processed and output. This
makes it impossible to use the shell plugin in Windows which is a key feature
of DigiKam enabling workflow.

The plugin IS invoking the command line interpreter, it is also passing SOME
environmental variables, but NOT the filenames. 

STEPS TO REPRODUCE
1.  Open Digikam
2.  Open Batch queue manager
3.  Open any picture file
4.  Add an assigned tool of 'User Shell Script' to the list of assigned tools
5.  Add the line 'set > C:\temp\env_variables.txt' to the list of commands for
the batch file to run.
6.  Press the Run button to execute the script
7.   The script will report a failure, that's expected as you haven't done
anything. 

OBSERVED RESULT
1. The C:\temp\env_variables.txt lists all environmental variables available to
the CMD interpreter when the script was run. It does NOT contain the INPUT or
OUTPUT filenames anywhere but the following are listed which appear to be
populated (the rating on the picture was 4 stars so this is correct, I didn't
test the others):
COLORLABEL=0
COMMENTS=
PICKLABEL=0
RATING=4
TAGSPATH=
TITLE=

EXPECTED RESULT
The INPUT and OUTPUT environmental variables - (or any others that the
programming team want to use to put filenames in) are populated and present so
that they can be processed by scripts and this feature can be used in Windows.

I have not tested on Linux, though I have it installed as well on that
platform, as I want to do the batch processing in Windows in this instance.

SOFTWARE/OS VERSIONS
digiKam: 8.8.0
KDE Frameworks: 6.17.0
Qt: Using 6.9.1 and built against 6.9.1
Windows 11 Version 22H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.22621


ADDITIONAL INFORMATION
This bug was seen by another user earlier this year on an earlier version,
https://discuss.pixls.us/t/user-shell-script-on-windows/50864

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to