Bug 462696 - [Kompare] Doesn't Request Permission to Save Changes to SuperUser-owned Files
Summary: [Kompare] Doesn't Request Permission to Save Changes to SuperUser-owned Files
Status: CONFIRMED
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: 4.1.22083
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Kompare developers
URL:
Keywords: needs_verification, usability
Depends on:
Blocks:
 
Reported: 2022-12-06 10:49 UTC by nekonexus
Modified: 2024-06-14 15:10 UTC (History)
0 users

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 nekonexus 2022-12-06 10:49:06 UTC
SUMMARY

Kompare doesn't request superuser privileges, like Kate does, when the user asks to save/commit diff data to a compared file that's in a root-owned directory. Instead of outright denying the user's request, it should ask for permission to do so instead.


STEPS TO REPRODUCE
1. (On Arch Linux, an example: ) "kompare /etc/mkinicpio.conf.pacnew /etc/mkinitcpio.conf"
(On Arch Linux, updates can save new configuration files as ".pacnew" files so that users can manage their changes to their already existing configurations. As it stands, kompare is hindered in attempts to use it in this manner.)
2. Apply differences to the target file
3. Attempt to save the new changes

OBSERVED RESULT
kompare is completely held back from managing file changes for system configuration files

EXPECTED RESULT
kompare should do what it's meant to and instead ask for permissions to touch files instead of rejecting the user

SOFTWARE/OS VERSIONS
Linux: Arch Linux x86_64
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
N/A
Comment 1 Nate Graham 2024-06-14 15:10:54 UTC
Migrating "reproducible" keyword to "CONFIRMED" status.