Bug 468516 - When installed from Fedora distro packages, Peek and Gedit don't launch via GUI methods ("The name is not activatable" error)
Summary: When installed from Fedora distro packages, Peek and Gedit don't launch via G...
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.105.0
Platform: Fedora RPMs Linux
: NOR grave
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-14 22:10 UTC by Dan Dascalescu
Modified: 2023-05-18 03:46 UTC (History)
6 users (show)

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


Attachments
Can't launch Peek on Fedora (48.96 KB, image/png)
2023-04-14 22:10 UTC, Dan Dascalescu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Dascalescu 2023-04-14 22:10:32 UTC
Created attachment 158116 [details]
Can't launch Peek on Fedora

STEPS TO REPRODUCE
1. On a system without Peek, install it from Discover
2. (Notice the quoted size is a few hundred KB, but if you install it on a fresh system, the installation will take far longer that would be warranted for a few hundred KB; I guess this is due to installing Flatpak?)
3. Attempt to launch Peek from the Application Launcher

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 37 KDE spin, Wayland
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Comment 1 Nate Graham 2023-04-17 16:04:02 UTC
Cannot reproduce with Peek when installed from Flatpak, but I can reproduce with Peek when installed from Fedora packages. I can also reproduce the issue with Gedit when installed from distro packages.

In both cases, when I launch the app from Kickoff or KRunner, I see the same error message you do. When I launch the app in a terminal window, either directly or with `kstart`, it launches.

In Discover when I try to launch the app, I see an error message:

QString::arg: 2 argument(s) missing in com.uploadedlobster.peek [for Peek]
QString::arg: 2 argument(s) missing in org.gnome.gedit [for Gedit]


Focusing on Peek for a moment, the .desktop files for the app installed via both methods are almost identical:

diff /usr/share/applications/com.uploadedlobster.peek.desktop /var/lib/flatpak/app/com.uploadedlobster.peek/current/active/export/share/applications/com.uploadedlobster.peek.desktop 
30c30
< Exec=peek
---
> Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=peek com.uploadedlobster.peek
112a113
> X-Flatpak=com.uploadedlobster.peek


This is feeling like a KIO ApplicationLaunchJob bug; moving there.
Comment 2 Nicolas Fella 2023-04-18 11:25:46 UTC
Can't reproduce this at all.

The error message suggests it happens while trying to launch the apps via DBus activation, which both Peek and Gedit say they support in their desktop file
Comment 3 Nate Graham 2023-04-18 23:49:46 UTC
Now that Bug 468298 is fixed for me, I can't reproduce the issue here anymore. I suspect that Dan is suffering from a similar local configuration issue.

Dan, have you by any chance ever compiled KDE software from source? Does the folder /opt/kde-dbus-scripts/ exist on disk?

Also, can you run `grep -ri XDG_DATA_DIRS ~` in a terminal window and paste the output here?
Comment 4 Bug Janitor Service 2023-05-03 03:46:17 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 5 Bug Janitor Service 2023-05-18 03:46:15 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!