jsm174 / vpx-standalone-scripts

Table patches for VPX Standalone
https://github.com/vpinball/vpinball/tree/standalone/
31 stars 15 forks source link

VPinball windows have no icon #95

Open francisdb opened 1 year ago

francisdb commented 1 year ago

This is on gnome

image

This on mac

image
francisdb commented 1 year ago

Messed a bit with .desktop files but no success. It creates a launcher but does not pick up anything launched from console / an other app.

[Desktop Entry]
Name=VPinball
Exec=/home/francisdb/workspace/somatik/vpinball/build/VPinballX_GL "-play" "/home/francisdb/vpinball/tables/Cirqus Voltaire (Bally 1997) VPW Mod v1.0.vpx" "-DisableTrueFullscreen" %u
Version=1.0
Type=Application
Categories=Development;IDE;
Terminal=true
Icon=/home/francisdb/.local/share/JetBrains/Toolbox/apps/clion/bin/clion.svg

~/.local/share/applications/vpinball.desktop gio set vpinball.desktop "metadata::trusted" yes gio launch vpinball.desktop

sudo update-desktop-database

launching this still shows the cog icon for the main window

francisdb commented 1 year ago

https://wiki.libsdl.org/SDL2/SDL_SetWindowIcon

Did read that some specific formats might be required

https://github.com/vpinball/vpinball/blob/master/res/vpinball.ico

jsm174 commented 11 months ago

We just added support for VPX being a real MacOS application. In MacOS it was definitely not as simple as using SDL_SetWindowIcon.

Screenshot 2023-11-19 at 8 40 30 PM

If someone could really dig into the Linux side it would be appreciated.