Bug 455074

Summary: Open selected folder(s) and image(s) with KGeoTag
Product: [Applications] kgeotag Reporter: Sadi <sadiyumusak>
Component: GeneralAssignee: Tobias Leupold <tl>
Status: RESOLVED FIXED    
Severity: wishlist CC: tl
Priority: NOR    
Version First Reported In: 1.2.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sadi 2022-06-09 11:03:31 UTC
SUMMARY
***
It would be great if KGeoTag could be launched also from Dolphin to Open With selected image(s) and/or folder(s), which at the present can only be done by launching an empty session first and then using keyboard shortcuts Ctrl+F or Ctrl+D (or File menu entries "Add images..." or "Add... directory". 
***
Comment 1 Tobias Leupold 2022-06-09 13:57:51 UTC
Thanks for your feedback!

I think at the moment, KGeoTag doesn't handle command line parameters at all (I'll have to check that though ;-) but this shouldn't be too hard to implement. Once done, it should be possible to add some shortcut to Dolphin ("open with ...").

Maybe, this can even be pre-defined, I think Gwenview does that. But I'll also have to check that.

I'll post all updates concerning this here!
Comment 2 Tobias Leupold 2022-06-12 14:50:55 UTC
Git commit cb8489b5636d7378563261aa31a59c57e2a8b361 by Tobias Leupold.
Committed on 12/06/2022 at 14:48.
Pushed by tleupold into branch 'master'.

Added loading dirs/files given on the command line

M  +25   -1    src/MainWindow.cpp

https://invent.kde.org/graphics/kgeotag/commit/cb8489b5636d7378563261aa31a59c57e2a8b361
Comment 3 Tobias Leupold 2022-06-12 14:54:37 UTC
Okay, we now can load directories and/or files that are given on the command line.

This works fine for one selected directory or file via Dolphin's "Open with", but if more files and/or directories are selected, one instance of KGeoTag is opened … I'm not sure how to handle this. Loading an arbitrary number of files (or a wildcard) given via the command line directly works as expected.

I'll have to check if there's a way how to tell Dolphin to pass a list to KGeoTag instead of opening multiple instances.
Comment 4 Tobias Leupold 2022-07-15 22:06:21 UTC
Git commit 4e73cbc9119f9f903586d382fad93f004ffd2a43 by Tobias Leupold.
Committed on 15/07/2022 at 22:04.
Pushed by tleupold into branch 'master'.

KGeoTag now can take a list of URLs when being called

M  +1    -1    org.kde.kgeotag.desktop

https://invent.kde.org/graphics/kgeotag/commit/4e73cbc9119f9f903586d382fad93f004ffd2a43