Bug 427207 - cannot open krename via apps launcher when running Wayland session
Summary: cannot open krename via apps launcher when running Wayland session
Status: RESOLVED FIXED
Alias: None
Product: krename
Classification: Applications
Component: general (show other bugs)
Version: 5.0.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Heiko Becker
URL:
Keywords:
: 438868 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-01 15:10 UTC by Patrick Silva
Modified: 2021-10-30 17:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.2


Attachments
attachment-5488-0.html (1.38 KB, text/html)
2021-10-30 17:49 UTC, storagebin95
Details
attachment-5839-0.html (1.82 KB, text/html)
2021-10-30 17:55 UTC, storagebin95
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-10-01 15:10:33 UTC
SUMMARY
krename 5.0.60 on Arch Linux, cannot reproduce on X11 session.
When running Wayland session, krename does not open via apps launcher, but it does via CLI.

STEPS TO REPRODUCE
1. start Wayland session
2. try to open krename via apps launcher: krename does not open
3. run "krename" in Konsole: krename opens

EXPECTED RESULT
krename opens in the step 2

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.90
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Comment 1 Heiko Becker 2020-10-08 16:14:46 UTC
Git commit 9e21688a83e5683ad77fca3be91afe351552287b by Heiko Becker.
Committed on 08/10/2020 at 16:12.
Pushed by heikobecker into branch '5.0'.

Drop %i from desktop file

%i is expanded to --icon <icon>,  but Qt recognizes this option only on
X11/xcb, not on Wayland. Therefore krename failed to start via desktop file
on Wayland. Dropping %i has no effect even on X11/xcb because we call
QApplication::setWindowIcon in main().
FIXED-IN: 5.0.2

M  +1    -1    src/org.kde.krename.desktop

https://invent.kde.org/utilities/krename/commit/9e21688a83e5683ad77fca3be91afe351552287b
Comment 2 Antonio Rojas 2021-06-18 16:16:43 UTC
*** Bug 438868 has been marked as a duplicate of this bug. ***
Comment 3 storagebin95 2021-10-30 13:56:09 UTC
This bug is NOT still resolved as of 30 Oct 2021.
Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-38-generic (64-bit)
Graphics Platform: Wayland
Comment 4 Heiko Becker 2021-10-30 13:58:41 UTC
It should be resolved in git, but there's no new release with the fix.

Or are you saying the linked fix is incomplete?
Comment 5 storagebin95 2021-10-30 17:49:16 UTC
Created attachment 143034 [details]
attachment-5488-0.html

I'm sorry I do not understand your question but KRename fails to launch
under following parameters:
Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-38-generic (64-bit)
Graphics Platform: Wayland
There is no problem if the graphics platform is changed to x11.
This is the same problem described by the  original bug report.
Would you therefore not agree that the bug is not fixed?

On Sat, Oct 30, 2021 at 9:58 AM Heiko Becker <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=427207
>
> --- Comment #4 from Heiko Becker <heiko.becker@kde.org> ---
> It should be resolved in git, but there's no new release with the fix.
>
> Or are you saying the linked fix is incomplete?
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 6 storagebin95 2021-10-30 17:55:06 UTC
Created attachment 143036 [details]
attachment-5839-0.html

Ok, I dropped the %i from the desktop file as you suggest and it works now.

On Sat, Oct 30, 2021 at 1:48 PM storagebin95 <storagebin95@gmail.com> wrote:

> I'm sorry I do not understand your question but KRename fails to launch
> under following parameters:
> Operating System: KDE neon 5.23
> KDE Plasma Version: 5.23.2
> KDE Frameworks Version: 5.87.0
> Qt Version: 5.15.3
> Kernel Version: 5.11.0-38-generic (64-bit)
> Graphics Platform: Wayland
> There is no problem if the graphics platform is changed to x11.
> This is the same problem described by the  original bug report.
> Would you therefore not agree that the bug is not fixed?
>
> On Sat, Oct 30, 2021 at 9:58 AM Heiko Becker <bugzilla_noreply@kde.org>
> wrote:
>
>> https://bugs.kde.org/show_bug.cgi?id=427207
>>
>> --- Comment #4 from Heiko Becker <heiko.becker@kde.org> ---
>> It should be resolved in git, but there's no new release with the fix.
>>
>> Or are you saying the linked fix is incomplete?
>>
>> --
>> You are receiving this mail because:
>> You are on the CC list for the bug.
>
>
Comment 7 storagebin95 2021-10-30 17:57:31 UTC
I followed Heiko Becker's suggestion, and now KRename launches normally under wayland.