Bug 496557 - "Explore in Filelight" button in folder properties doesn't work
Summary: "Explore in Filelight" button in folder properties doesn't work
Status: CONFIRMED
Alias: None
Product: filelight
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: SteamOS Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 472015 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-11-21 21:39 UTC by Peter
Modified: 2024-11-28 11:47 UTC (History)
8 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 Peter 2024-11-21 21:39:49 UTC
SUMMARY
Properties on the General tab has a "Explore in Filelight" button.
Clicking on it does nothing.
Filelight is installed as a flatpak and can be launched/used manually.

STEPS TO REPRODUCE
1. Right click on a folder, select properties, click on "Explore in Filelight".

OBSERVED RESULT
Nothing happens.

EXPECTED RESULT
Filelight to be launched.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Akseli Lahtinen 2024-11-22 11:27:49 UTC
Can confirm: Nov 22 13:27:05 fedora-desktop flatpak[36677]: error: Invalid fd passed

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.0
Kernel Version: 6.11.8-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 2 Akseli Lahtinen 2024-11-26 14:59:33 UTC
*** Bug 472015 has been marked as a duplicate of this bug. ***
Comment 3 Akseli Lahtinen 2024-11-26 15:10:16 UTC
Seems the problem is with flatpak permissions.

I had to enable "All user files, All system files" settings with read-only.
Comment 4 Harald Sitter 2024-11-27 09:14:24 UTC
Those permissions should be unnecessary. The path should get portal'd I think?
Comment 5 Harald Sitter 2024-11-27 09:17:21 UTC
Oh, I suppose dolphin doesn't portal it when using open with. I think that needs fixing in dolphin though, filelight has no access to the host here.
Comment 6 Timothée Ravier 2024-11-27 11:36:12 UTC
Due to how Flatpak portals work, they require explicit user permission to be able to open a folder.
When opening Filelight from Dolphin, it would have to re-request to the user to select the folder to open in order to allow Filelight to access it.

Granting permissions to Fileight does not do what you want because it does not trully grant it access to the folder underneath, only a limited view of it. For example, granting home access does not grant access to `~/.var/`.

See previous discussions in:
- https://github.com/flathub/org.kde.filelight/pull/14
- https://github.com/flathub/org.kde.filelight/pull/12
Comment 7 Harald Sitter 2024-11-28 10:26:02 UTC
Surely a dolphin that runs on the host can just "pass" permission to the flatpak'd filelight though?
Comment 8 Timothée Ravier 2024-11-28 11:47:43 UTC
It could theoretically but I don't know if this is implemented in Flatpak.