Bug 484997 - Kdiff3 and Kompare can't see the home folder or media folder
Summary: Kdiff3 and Kompare can't see the home folder or media folder
Status: RESOLVED FIXED
Alias: None
Product: kdiff3
Classification: Applications
Component: application (show other bugs)
Version: 1.10.6
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: michael
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 20:09 UTC by Silviu
Modified: 2024-05-19 00:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Home folder is empty (59.94 KB, image/png)
2024-04-03 20:14 UTC, Silviu
Details
/media folder can't be seen (116.96 KB, image/png)
2024-04-03 20:16 UTC, Silviu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Silviu 2024-04-03 20:09:10 UTC
SUMMARY
I tried to open compare some files from an external drive mounted on /media/<user>/<MyDrive> but I sow that /media directory can't be seen.
I mounted the external drive to /home folder, but the /home/<user> is seen as empty folder.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: MxLinux: MX-23.2_KDE_x64 Libretto, based on Debian 12.5, KDE Plasma 5.27.5

Thank you!
Comment 1 Silviu 2024-04-03 20:14:52 UTC
Created attachment 168110 [details]
Home folder is empty

The /home folder is seen as empty folder but isn't
Comment 2 Silviu 2024-04-03 20:16:42 UTC
Created attachment 168111 [details]
/media folder can't be seen
Comment 3 Silviu 2024-04-03 20:26:12 UTC
The same behavior is for Kompare.
Both application were installed using flatpak: 
sudo flatpak install -y flathub org.kde.kdiff3
sudo flatpak install -y flathub org.kde.kompare

When I saw that the /home/user_name folder is seed as empty even if this is not empty  and /media folder can't be seen, I tried using next  commands:
sudo flatpak override kde.org.kdiff3 --filesystem=host
sudo flatpak override kde.org.kompare --filesystem=host

but the results is the same.

but
Comment 4 bugsie 2024-04-03 23:07:57 UTC
Not a bug. Bad report, wrong command syntax. Please educate yourself on what flatpak is, how it works and how to properly give permissions. Better use a GUI instead. Closed.
Comment 5 michael 2024-04-22 23:35:43 UTC
My apologies for the rather turse auto reply and closure.  I am overruling the closure as kdiff3 can and should ajust its default permisions. Flatpack by default  is highly restrictive on what apps are permitted to do. For kdiff3 this is excessive.
Comment 6 michael 2024-04-22 23:54:25 UTC
kdiff3 will has bee adjusted to use --filesystem=home as its default ship setting. Further opening of the permissions should be done by configuration at the install site.  This is now resolved for KDiff3.
Comment 7 Kevin Kofler 2024-04-25 22:30:51 UTC
I don't know who maintains the Flatpak for Kompare on Flathub. I don't.
Comment 8 michael 2024-04-25 23:51:01 UTC
I can can check the repo. on invent.kde.org. Any config file would be there if its mantianed on kde's systems. I would also be willing to do the MR. Hopeful that will get to the right person.
Comment 9 bugsie 2024-05-18 20:02:01 UTC
(In reply to Silviu from comment #3)
> The same behavior is for Kompare.
> Both application were installed using flatpak: 
> sudo flatpak install -y flathub org.kde.kdiff3
> sudo flatpak install -y flathub org.kde.kompare
> 
> When I saw that the /home/user_name folder is seed as empty even if this is
> not empty  and /media folder can't be seen, I tried using next  commands:
> sudo flatpak override kde.org.kdiff3 --filesystem=host
> sudo flatpak override kde.org.kompare --filesystem=host
> 
> but the results is the same.
> 
> but

The correct syntax is

sudo flatpak override org.kde.kompare --filesystem=host 

Problem solved?
Comment 10 michael 2024-05-19 00:03:50 UTC
From kdiff3s perspective this is resolved in the default settings. Manual override on your machine can also be done by command line or in some distros a plugin for system settings maybe provided .