FS#76421 - [mgba-qt] Duplicate .desktop file
Attached to Project:
Community Packages
Opened by Jordan Christiansen (xordspar0) - Friday, 04 November 2022, 17:41 GMT
Last edited by Jonathan Steel (jsteel) - Sunday, 22 January 2023, 15:09 GMT
Opened by Jordan Christiansen (xordspar0) - Friday, 04 November 2022, 17:41 GMT
Last edited by Jonathan Steel (jsteel) - Sunday, 22 January 2023, 15:09 GMT
|
Details
Description:
Starting at mgba commit c6b25f1 [1], first released in 0.10.0, mgba installs its .desktop file to io.mgba.mGBA.desktop. This package used to overwrite that file, but now that the upstream file is renamed, the package script installs a second file, resulting in 2 files in the desktop applications menu. $ pacman -Q mgba-qt mgba-qt 0.10.0-1 $ pacman -Ql mgba-qt | grep desktop mgba-qt /usr/share/applications/io.mgba.mGBA.desktop mgba-qt /usr/share/applications/mgba-qt.desktop Also, it looks like both desktop files refer to a io.mgba.mGBA.png icon file that doesn't exist. $ grep Icon /usr/share/applications/*mgba* /usr/share/applications/io.mgba.mGBA.desktop:Icon=io.mgba.mGBA /usr/share/applications/mgba-qt.desktop:Icon=io.mgba.mGBA $ pacman -Ql mgba-qt | grep png mgba-qt /usr/share/pixmaps/mgba.png [1]: https://github.com/mgba-emu/mgba/commit/c6b25f14a33695b71b55a4504949762d805af3c4 |
This task depends upon
Closed by Jonathan Steel (jsteel)
Sunday, 22 January 2023, 15:09 GMT
Reason for closing: Fixed
Additional comments about closing: 0.10.1-1
Sunday, 22 January 2023, 15:09 GMT
Reason for closing: Fixed
Additional comments about closing: 0.10.1-1
Maybe it would be better to install all components in a common section and then manually copy the necessary files in each subpackage section. Or maybe the upstream CMakeLists.txt file could be changed to properly track dependencies, but I'm not yet familiar enough with cmake to know how that would work.
[1]: https://github.com/mgba-emu/mgba/blob/fec87062ca6a4125d449d145f38a1c6689ba94d6/CMakeLists.txt#L922
[2]: https://github.com/mgba-emu/mgba/blob/fec87062ca6a4125d449d145f38a1c6689ba94d6/CMakeLists.txt#L19
[3]: https://github.com/mgba-emu/mgba/blob/fec87062ca6a4125d449d145f38a1c6689ba94d6/src/platform/qt/CMakeLists.txt#L311