Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#53131 - [qtcreator] Removal of "duplicate" desktop icon breaks plasma task manager behavior

Attached to Project: Arch Linux
Opened by Vuk Zdinjak (Vuk) - Wednesday, 01 March 2017, 18:09 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 04 April 2017, 21:44 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

Hi, the latest package revision (qtcreator 4.2.1-2) removed qtcreator.desktop file which is a longstanding hack (in archlinux) around ugly qtcreator default package behavior, to clarify – without this “extra” file, qtcreator is registered as qtcreator-bin in plasma desktop and does not respect system wide icon theme for its icon, it is also registered as a separate process from its launcher if pinned to icon only task manager for example, so it the extra file actually fixes two problems. Could you please revert package and add a comment in there so that we remove possibility of accidental removal in the future?
This task depends upon

Closed by  Antonio Rojas (arojas)
Tuesday, 04 April 2017, 21:44 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 01 March 2017, 21:35 GMT
I'll rather patch the provided .desktop file.
Comment by Vuk Zdinjak (Vuk) - Wednesday, 01 March 2017, 22:33 GMT
I had not noticed that they now provide .desktop file, i tried 4.2.1-3 and it still doesn't work as expected but solution proved to be a simple rename of org.qt-project.qtcreator.desktop to qtcreator.desktop, I hope that solution is acceptable. Thank you for your work.
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 03 March 2017, 07:10 GMT
I don't see what the problem is. The difference between .desktop files is quite minimal. Files are attached. What is the relevant difference here?
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 03 March 2017, 07:10 GMT
The files.
Comment by Mad Fish (MadFish) - Friday, 03 March 2017, 10:12 GMT
Can confirm the problem also on GNOME - the shell cannot match the window to its desktop file.
Comment by Antonio Rojas (arojas) - Friday, 03 March 2017, 10:17 GMT
@svenstaro the issue is the desktop file name, not its content. Plasma (and other DEs according to the last comment) try to match the desktop file name with the window metainfo of the running application. If they don't match, it will think that they are different applications.

The issue here is caused by the following lines:
# Workaround for  FS#40583 
mv "${pkgdir}"/usr/bin/qtcreator "${pkgdir}"/usr/bin/qtcreator-bin
echo "#!/bin/sh" > "${pkgdir}"/usr/bin/qtcreator
echo "QT_LOGGING_TO_CONSOLE=1 qtcreator-bin \$@" >> "${pkgdir}"/usr/bin/qtcreator
chmod +x "${pkgdir}"/usr/bin/qtcreator
which change the binary name to qtcreator-bin. The removed desktop file was actually a workaround for an issue caused by this workaround...
Comment by Antonio Rojas (arojas) - Thursday, 30 March 2017, 10:03 GMT
Please test 4.2.1-4 and, if there are still issues, report them upstream. We now install the vanilla upstream files.

Loading...