Bug 368266 - Desktop file name doesn't match name/domain set through KAboutData
Summary: Desktop file name doesn't match name/domain set through KAboutData
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks: 368267
  Show dependency treegraph
 
Reported: 2016-09-05 10:20 UTC by Martin Flöser
Modified: 2016-09-05 19:10 UTC (History)
1 user (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 Martin Flöser 2016-09-05 10:20:42 UTC
KWrite has a desktop file name called "org.kde.kwrite.desktop", but KWrite reports through KAboutData to be: "org.kate-editor.kwrite".

This means that the windowing system is not able to match the window to an application.

Reproducible: Always

Steps to Reproduce:
1. Start Plasma Wayland
2. Launch KWrite

Actual Results:  
no icon in window decoration and in task manager

Expected Results:  
Icon in window decoration and task manager
Comment 1 Christoph Cullmann 2016-09-05 10:24:03 UTC
Hmm, we have in KWrite and Kate:

 /**
     * right dbus prefix == org.kde.
     */
    aboutData.setOrganizationDomain(QByteArray("kde.org"));

shouldn't that fix this issue, too?
Comment 2 Martin Flöser 2016-09-05 12:36:45 UTC
(In reply to Christoph Cullmann from comment #1)
> shouldn't that fix this issue, too?

I don't know. This is a relatively recent regression. It always used to work, but recently noticed the change in behavior.
Comment 3 Christoph Cullmann 2016-09-05 12:39:47 UTC
Ok, strange, then no idea.
I actually really thought the above code would fix that.
Comment 4 Martin Flöser 2016-09-05 12:41:35 UTC
When did you add that? Maybe I'm not running the latest latest master?
Comment 5 Dominik Haumann 2016-09-05 19:10:58 UTC
Git commit ad1fb0cf6d79f015cb2132698a652328d30437e0 by Dominik Haumann.
Committed on 05/09/2016 at 19:10.
Pushed by dhaumann into branch 'Applications/16.08'.

Fix window icon in wayland sessions

REVIEW: 128839
Related: bug 368267

M  +8    -0    kate/main.cpp
M  +9    -1    kwrite/main.cpp

http://commits.kde.org/kate/ad1fb0cf6d79f015cb2132698a652328d30437e0