Bug 466148 - Dolphin, "Open with" dialog doesn't work
Summary: Dolphin, "Open with" dialog doesn't work
Status: RESOLVED FIXED
Alias: None
Product: plasma-integration
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-20 16:27 UTC by Marcin Bajor
Modified: 2023-03-01 14:41 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27.1


Attachments
Krusader with "Open with" dialog (182.71 KB, image/png)
2023-02-20 16:29 UTC, Marcin Bajor
Details
"Open with" dialog from xdg-desktop-portal-kde package (515.53 KB, image/png)
2023-02-20 16:31 UTC, Marcin Bajor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Bajor 2023-02-20 16:27:20 UTC
I observed that the "Open with" dialog has stopped working in Dolphin. 

There is the following message in the journal:
Feb 20 12:33:40 phantom dolphin[16528]: Error:  "The name org.freedesktop.impl.portal.desktop.kde was not provided by any .service files"

dbus-monitor reports:
method call time=1676851077.734486 sender=:1.85 -> destination=org.freedesktop.impl.portal.desktop.kde serial=384 path=/org/freedesktop/portal/desktop; interface=org.freedesktop.impl.portal.AppChooser; member=ChooseApplicationPrivate
   string "x11:3e00009"
   array [
      string "file:///home/marcin/.local/share/dolphin/dolphinstaterc"
   ]
   array [
      dict entry(
         string "ask"
         variant             boolean true
      )
   ]
error time=1676851077.734743 sender=org.freedesktop.DBus -> destination=:1.85 error_name=org.freedesktop.DBus.Error.ServiceUnknown reply_serial=384
   string "The name org.freedesktop.impl.portal.desktop.kde was not provided by any .service files"
signal time=1676851078.380943 sender=:1.23 -> destination=(null destination) serial=184 path=/SLC; interface=org.kde.ActivityManager.SLC; member=focusChanged

My software versions:
Operating System: openSUSE Tumbleweed 20230218
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Dolphin: Version 22.12.2
Qt Version: 5.15.8
Kernel Version: 6.1.12-1-default (64-bit)
Graphics Platform: X11
Comment 1 Marcin Bajor 2023-02-20 16:29:31 UTC
Created attachment 156537 [details]
Krusader with "Open with" dialog

The same dialog that was used in Dolphin is used in Krusader and works in this application. In this case, dbus-monitor does not report anything, as if this dialog was run in a different way.
Comment 2 Marcin Bajor 2023-02-20 16:31:24 UTC
Created attachment 156538 [details]
"Open with" dialog from xdg-desktop-portal-kde package

I have tried with xdg-desktop-portal-kde however, it is a completely different dialog than before. There is no option to run in the terminal, no division into software categories etc.
Comment 3 Nate Graham 2023-02-20 17:04:54 UTC
Looks like we need one of the following:
1. plasma-integration should make xdg-desktop-portal and xdg-desktop-portal-kde hard dependencies
2. If xdg-desktop-portal and xdg-desktop-portal-kde aren't installed, fall back to the old dialog.

I can see from the CMakeLists.txt file that we don't do #1, so perhaps the intention was to do #2 and it's not working.
Comment 4 Bug Janitor Service 2023-02-21 06:45:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-integration/-/merge_requests/70
Comment 5 Harald Sitter 2023-02-21 12:21:03 UTC
Git commit ae36cf167089b0bf42c29d501e9009b51980b4ec by Harald Sitter.
Committed on 21/02/2023 at 06:44.
Pushed by sitter into branch 'master'.

codify runtime dependency on xdg-desktop-portal-kde
FIXED-IN: 5.27.1

M  +6    -0    CMakeLists.txt

https://invent.kde.org/plasma/plasma-integration/commit/ae36cf167089b0bf42c29d501e9009b51980b4ec
Comment 6 Harald Sitter 2023-02-21 12:29:47 UTC
Git commit bc1c5d66828429904ea9820154b72307d26a8529 by Harald Sitter.
Committed on 21/02/2023 at 12:21.
Pushed by sitter into branch 'Plasma/5.27'.

codify runtime dependency on xdg-desktop-portal-kde
FIXED-IN: 5.27.1


(cherry picked from commit ae36cf167089b0bf42c29d501e9009b51980b4ec)

M  +6    -0    CMakeLists.txt

https://invent.kde.org/plasma/plasma-integration/commit/bc1c5d66828429904ea9820154b72307d26a8529
Comment 7 Claudius 2023-02-24 15:36:31 UTC Comment hidden (spam)
Comment 8 Nate Graham 2023-02-24 17:56:51 UTC Comment hidden (spam)
Comment 9 David Geiger 2023-03-01 05:02:47 UTC
Hi,

For me it is not completely fixed as any files/packages provides "cmake(XDGDesktopPortalKDE)" or a XDGDesktopPortalKDEConfig.cmake:

  Could not find a package configuration file provided by
  "XDGDesktopPortalKDE" with any of the following names:

    XDGDesktopPortalKDEConfig.cmake
    xdgdesktopportalkde-config.cmake

Regards,
David
Comment 10 Nate Graham 2023-03-01 14:41:38 UTC
That means you're trying to compile plasma-integration without xdg-desktop-portal installed. CMake is telling you that you need to install it, because it's a mandatory dependency.

...or at least, it was. We've reverted the change that made it mandatory for Plasma 5.27.3 for the moment.