Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634356 - app-crypt/pinentry[qt5] window shows no icon under Plasma Wayland
Summary: app-crypt/pinentry[qt5] window shows no icon under Plasma Wayland
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kristian Fiskerstrand (RETIRED)
URL: https://dev.gnupg.org/T3449
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-15 17:24 UTC by Andrius Štikonas
Modified: 2018-04-12 08:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
0001-Make-pinentry-qt-icon-work-under-Plasma-Wayland.patch (0001-Make-pinentry-qt-icon-work-under-Plasma-Wayland.patch,1.57 KB, patch)
2018-03-07 14:18 UTC, Andrius Štikonas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius Štikonas 2017-10-15 17:24:30 UTC
I use Plasma Wayland session and pinentry-qt shows generic Wayland icon.

In order to fix this, application should ship a desktop file with Icon="icon" attribute (e.g. see https://cgit.kde.org/plasma-workspace.git/commit/?id=97a88917a546c426be73e6bff0b248135aca7033) and call setDesktopFileName.

In my opinion this is an upstream issue but when I filled an upstream bug (https://dev.gnupg.org/T3449), they said it's up to distributions.

Reproducible: Always

Steps to Reproduce:
1. Launch pinentry-qt on Plasma Wayland session

Actual Results:  
Generic Wayland icon is shown

Expected Results:  
pinentry (lock) icon is shown
Comment 1 Kristian Fiskerstrand (RETIRED) gentoo-dev 2017-10-16 21:36:17 UTC
(In reply to Andrius Štikonas from comment #0)
> I use Plasma Wayland session and pinentry-qt shows generic Wayland icon.
> 

Thanks for the report

> In order to fix this, application should ship a desktop file with
> Icon="icon" attribute (e.g. see
> https://cgit.kde.org/plasma-workspace.git/commit/
> ?id=97a88917a546c426be73e6bff0b248135aca7033) and call setDesktopFileName.
> 
> In my opinion this is an upstream issue but when I filled an upstream bug
> (https://dev.gnupg.org/T3449), they said it's up to distributions.
> 

I would normally agree it is an upstream issue, but given the upstream response, I'm open to accepting a patch for it downstream.
Comment 2 Andrius Štikonas 2017-10-16 21:43:21 UTC
Thanks, I'll try to write a patch at some point, maybe over the weekend...
Comment 3 Andrius Štikonas 2018-03-07 14:18:55 UTC
Created attachment 522672 [details, diff]
0001-Make-pinentry-qt-icon-work-under-Plasma-Wayland.patch

Tested on Wayland.

I can see the document-encrypt icon (although it shows document-encrypt from Breeze theme not the one shipped with pinentry, but I guess it's OK)
Comment 4 Larry the Git Cow gentoo-dev 2018-03-21 19:35:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dd048d3aea02a2cfbec81db25008e7098ac895c

commit 1dd048d3aea02a2cfbec81db25008e7098ac895c
Author:     Kristian Fiskerstrand <k_f@gentoo.org>
AuthorDate: 2018-03-21 19:34:44 +0000
Commit:     Kristian Fiskerstrand <k_f@gentoo.org>
CommitDate: 2018-03-21 19:34:44 +0000

    app-crypt/pinentry: Make pinentry-qt icon show under Plasma-Wayland
    
    Bug: https://dev.gnupg.org/T3449
    Closes: https://bugs.gentoo.org/634356
    Thanks-To: Andrius Štikonas
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 ...1.0.0-make-icon-work-under-Plasma-Wayland.patch |  52 +++++++++++
 app-crypt/pinentry/pinentry-1.0.0-r3.ebuild        | 103 +++++++++++++++++++++
 2 files changed, 155 insertions(+)
Comment 5 Kristian Fiskerstrand (RETIRED) gentoo-dev 2018-04-10 17:02:12 UTC
re-opening c.f bug 652764 comment 4
Comment 6 Andrius Štikonas 2018-04-12 07:59:40 UTC
(In reply to Kristian Fiskerstrand from comment #5)
> re-opening c.f bug 652764 comment 4

Hmm, what is actually incompatible about the patch?

I just ran patch -p1 < pinentry-1.0.0-make-icon-work-under-Plasma-Wayland.patch 
patching file qt/Makefile.am
patching file qt/main.cpp
Hunk #1 succeeded at 354 (offset -18 lines).
patching file qt/org.gnupg.pinentry-qt.desktop

Seems to work...
Comment 7 Larry the Git Cow gentoo-dev 2018-04-12 08:29:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57f2b63e2db775e6ae31bccfd3481671a9cd7a5f

commit 57f2b63e2db775e6ae31bccfd3481671a9cd7a5f
Author:     Kristian Fiskerstrand <k_f@gentoo.org>
AuthorDate: 2018-04-12 08:27:25 +0000
Commit:     Kristian Fiskerstrand <k_f@gentoo.org>
CommitDate: 2018-04-12 08:29:05 +0000

    app-crypt/pinentry: Readd wayland patch
    
    Closes: https://bugs.gentoo.org/634356
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 app-crypt/pinentry/pinentry-1.1.0-r1.ebuild | 100 ++++++++++++++++++++++++++++
 1 file changed, 100 insertions(+)