Bug 429013 - Strange behaviour using MELD to compare files
Summary: Strange behaviour using MELD to compare files
Status: REPORTED
Alias: None
Product: krusader
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.7.2
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-12 14:38 UTC by Rafael Linux User
Modified: 2021-04-21 21:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Linux User 2020-11-12 14:38:23 UTC
SUMMARY
I prefer MELD to compare files, and configured Krusader to use it. However after I select 2 (remote or local) files, Krusader launchs MELD and give it two "temporal" files (copies from the original ones) so when I save from MELD changes, they are not saved and I lost the changes.

STEPS TO REPRODUCE
1. Install MELD 
2. Configure Krusader to use MELD as diff utility
3. Select two files
4. "File, Compare by content" 

OBSERVED RESULT
MELD is launched correctly, but files opened are not real ones, but a copy, and when user save changes, they are not saved.

EXPECTED RESULT
To save changes to original files

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.20.2
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Dolphin 20.x
kio-fuse installed

ADDITIONAL INFORMATION

Despite in Krusader's homepage it says

"Bug FAQs
Frequently asked questions about thinks not working in Krusader and their solutions.
I cannot use my favourite protocol X (SFTP, MTP, NFS, SMB, ...) in Krusader ("Protocol not supported"). Why?

Support for these protocols is not inbuilt in Krusader but provided by KIO. You need to additionally install the corresponding protocol library. The package is most likely called kio-extras."

just not the case since frameworks 5.20 fixed issue with kio-fuse.
Comment 1 Davide Gianforte 2020-11-23 20:38:44 UTC
Meld is not officially supported for an inline comparison as it belong to the Gnome ecosystem (kdiff3 and kompare does). As you said, kio-extras does not solve this (and it shouldn't).

The solution should be detecting if kio-fuse is present and Meld could handle it; moving to wishlist.
Comment 2 Rafael Linux User 2020-11-26 11:45:51 UTC
I asked MELD developers too, and unfortunately, this was their answer:


Kai Willadsen
Kai Willadsen @kaiw ยท 1 week ago
Maintainer

"File selector enhancement requests should be filed against GTK+. As far as I'm concerned, this goes for both using the native QT file selector (since it's implemented via a portal interface that currently supports Windows and OSX afaik) and adding server connection into the selector dialog. Meld isn't going to implement these ourselves, since we simply don't have the resources to maintain that.

I'll leave this bug open on the off-chance that we've done something that interferes with an existing QT file selector portal."

So I must forget MELD in my day to day job.
Comment 3 Toni Asensi Esteve 2021-03-27 18:49:58 UTC
> However after I select 2 (remote or local) files, Krusader launchs MELD 
> and give it two "temporal" files (copies from the original ones) so 
> when I save from MELD changes, they are not saved and I lost the changes.

It's strange. Using Kubuntu 20.04 and its Meld: local files are compared "as they are", without temporal files, therefore changes are saved in the original files. Does the same happen to you?
Comment 4 Rafael Linux User 2021-04-03 11:10:40 UTC
(In reply to Toni Asensi Esteve from comment #3)
> > However after I select 2 (remote or local) files, Krusader launchs MELD 
> > and give it two "temporal" files (copies from the original ones) so 
> > when I save from MELD changes, they are not saved and I lost the changes.
> 
> It's strange. Using Kubuntu 20.04 and its Meld: local files are compared "as
> they are", without temporal files, therefore changes are saved in the
> original files. Does the same happen to you?

I'm not sure if that question is for me (I opened this issue) but, yes, that works for me same way and that's how it should work over network folders, transparently, and remembering between Plasma sessions where that opened files where located.
Comment 5 Bug Janitor Service 2021-04-18 04:33:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Rafael Linux User 2021-04-18 08:21:52 UTC
Needsinfo? Needs fix. Info is exposed. What more can users do???
Comment 7 Toni Asensi Esteve 2021-04-18 21:38:08 UTC
Rafael: Meanwhile, if you want to use Meld: 
- If you access your remote files using Samba, have you tried "mounting" a "samba share" using some of the results of https://www.google.com/search?q=mount+samba ? 
- If you access your remote files using FTP, have you tried "mounting" a "samba share" using some of the results of https://www.google.com/search?q=mount+ftp ?
Comment 8 Toni Asensi Esteve 2021-04-18 21:43:03 UTC
I meant:

Meanwhile, if you want to use Meld: 
- If you access your remote files using Samba, have you tried "mounting" a "samba share" using some of the results of https://www.google.com/search?q=mount+samba ? 
- If you access your remote files using FTP, have you tried {"mounting" a remote FTP folder as a local folder} using some of the results of https://www.google.com/search?q=mount+ftp ?
Comment 9 Rafael Linux User 2021-04-18 23:03:40 UTC
Hi Toni
Thank you for your recommendations. More than 5 years ago, to mount remote folders was the only workaround. Today, we have kio-fuse that works, so to mount each one of the DISTINCT remote samba/ftp folders than I need to access, would be like to make steps backward.
Comment 10 Toni Asensi Esteve 2021-04-21 21:58:45 UTC
Thanks, Rafael, that's a reason of this bug report (for people who use programs with the aforementioned characteristics).