Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMEX icon in ALT+TAB is blurry #6096

Closed
ovari opened this issue Jul 11, 2023 · 7 comments · Fixed by #6108
Closed

MMEX icon in ALT+TAB is blurry #6096

ovari opened this issue Jul 11, 2023 · 7 comments · Fixed by #6108
Labels
bug fixed linux related to Linux platforms
Milestone

Comments

@ovari
Copy link
Contributor

ovari commented Jul 11, 2023

MMEX icon in ALT+TAB is blurry. Are vector images used in MMEX? If bitmap images are used, should they be replaced with vector images?

Thank you

image

Money Manager Ex
• Version: 1.6.5-Beta.1 64-bit
• Built on: Jul 1 2023 03:27:17
• Database version: 18 (aes128cbc)
MMEX is using the following support products:
• wxWidgets 3.1.7 (wxGTK 3.24)
• wxSQLite3 4.9.1 (SQLite 3.40.0)
• RapidJSON 1.1.0
• Lua 5.3.6
• libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.14
• gettext 0.21
• apexcharts.js
Built with:
• CMake 3.22.1
• GNU Make 4.3
• GCC 11.2.0
Running on:
• Ubuntu.22.04.jammy
• Linux Mint 21.1 "vera"
• Linux 5.15.0-76-generic x86_64
• (UTF-8)
• 0x0 0bit 192x192ppi
@vomikan vomikan added bug linux related to Linux platforms labels Jul 11, 2023
@vomikan vomikan added this to the v1.7.0 milestone Jul 11, 2023
@n-stein
Copy link
Contributor

n-stein commented Jul 13, 2023

SVG is already used for Linux:

# Icons
if(LINUX)
install(FILES
resources/mmex.svg
DESTINATION share/icons/hicolor/scalable/apps RENAME org.moneymanagerex.MMEX.svg)

You can try editing your org.moneymanagerex.MMEX.desktop file and add the line:

StartupWMClass=mmex

Maybe it will help.

@ovari
Copy link
Contributor Author

ovari commented Jul 13, 2023

Thank you @n-stein for your comment.

Sorry, don't know.

@joshua-stone can you please check?

Thank you

@joshua-stone
Copy link
Contributor

The SVG should be used:

$ find /var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/files/share/icons -type f
/var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/files/share/icons/hicolor/scalable/apps/org.moneymanagerex.MMEX.svg
$ find /var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/export -type f
/var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/export/share/applications/org.moneymanagerex.MMEX.desktop
/var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/export/share/icons/hicolor/scalable/apps/org.moneymanagerex.MMEX.svg
/var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/export/share/metainfo/org.moneymanagerex.MMEX.appdata.xml
/var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/export/share/mime/packages/org.moneymanagerex.MMEX.mime.xml
/var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/export/bin/org.moneymanagerex.MMEX
$ grep -i "^Icon" /var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/export/share/applications/org.moneymanagerex.MMEX.desktop
Icon=org.moneymanagerex.MMEX

The line StartupWMClass=mmex isn't present in the desktop file however:

https://github.com/moneymanagerex/moneymanagerex/blob/master/resources/dist/linux/share/applications/org.moneymanagerex.MMEX.desktop

@joshua-stone
Copy link
Contributor

joshua-stone commented Jul 13, 2023

Try to make a copy of the desktop file:

$ mkdir -p ~/.local/share/applications
$ cp /var/lib/flatpak/app/org.moneymanagerex.MMEX/current/active/files/share/applications/org.moneymanagerex.MMEX.desktop ~/.local/share/applications/org.moneymanagerex.MMEX.desktop

And see if setting StartupWMClass=mmex or StartupWMClass=org.moneymanagerex.MMEX does anything.

@ovari
Copy link
Contributor Author

ovari commented Jul 13, 2023

Have not changed any code.

As shown in the image below, opened both developmental release and Flatpak.

Developmental release shows blurry image.
Flatpak shows clear image.

image

@ovari
Copy link
Contributor Author

ovari commented Jul 13, 2023

The SVG should be used.

Yes, seems to be the case. What needs to changed so that the non-flatpak version also uses SVG? Thank you

@ovari
Copy link
Contributor Author

ovari commented Jul 13, 2023

  1. Open Files (aka Nemo)
  2. Navigate to /usr/share
  3. Right-click on applications and select Open as root
  4. Enter password
  5. Right-click on MMEX Money Manager and select Open With Text Editor
  6. After Type=Application, on a new line add StartupWMClass=mmex
  7. Save file
  8. Close file
  9. Works, thank you

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixed linux related to Linux platforms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants