Bug 497340

Summary: When run from command line, kdiff3 always fails to open the second file
Product: [Applications] kdiff3 Reporter: Reid Swanson <reid>
Component: applicationAssignee: michael <reeves.87>
Status: RESOLVED FIXED    
Severity: major CC: john.kizer
Priority: NOR    
Version: 1.11.5   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 1.12.0
Sentry Crash Report:
Attachments: Error dialog
attachment-4131774-0.html

Description Reid Swanson 2024-12-11 21:56:16 UTC
Created attachment 176534 [details]
Error dialog

SUMMARY
When running kdiff3 from the command line it will always fail to immediately open the diff and issue an error dialog saying the second file cannot be opened.

STEPS TO REPRODUCE
1.  Execute kdiff3 from the command line with 2 or 3 file arguments.
2. Observe an error dialog that says "Opening of these files failed:\nfile2.txt"
3. Click 'OK'
4. All files are correctly populated in the file selection dialog.
5. Click 'OK'
6. The files are correctly shown in the diff GUI.

OBSERVED RESULT
The diff is not immediately shown when executed from the command line and you must click through several dialogs to get the diff shown.


EXPECTED RESULT
The diff of the files should be directly shown in the GUI.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Gentoo 2.17
KDE Plasma Version:  6.2.4
KDE Frameworks Version: 6.7
Qt Version: 6.7.3

ADDITIONAL INFORMATION
The following bug report on the ScoopInstaller appears to be identical to what I am observing. See my attached screenshots and those at the following link:
https://github.com/ScoopInstaller/Extras/issues/13303#issuecomment-2191496880
Comment 1 John Kizer 2024-12-20 16:31:20 UTC
Hi - I can't reproduce this on Fedora KDE 41 with KDiff3 version 1.12.0, either the RPM or Flatpak version. Could you please test with that version on your end to see if you still see the issue?

Thanks!
Comment 2 michael 2024-12-20 16:50:36 UTC
Created attachment 176791 [details]
attachment-4131774-0.html

It should be fixed in 1.12.0. 1.11.x had issues with command line use that gave false errors.
Comment 3 Reid Swanson 2024-12-20 17:08:31 UTC
(In reply to John Kizer from comment #1)
> Hi - I can't reproduce this on Fedora KDE 41 with KDiff3 version 1.12.0,
> either the RPM or Flatpak version. Could you please test with that version
> on your end to see if you still see the issue?
> 
> Thanks!

Hi,

Yes, it appears to work with 1.12.0! :-)