TenderOwl / gircore-blueprint-template

A Template for applications using Gtk4 for C# using Gir.Core and Blueprint.
MIT License
1 stars 1 forks source link

Icons not building/loading #5

Open LauraWebdev opened 1 month ago

LauraWebdev commented 1 month ago

Hey there,

first of all: Wonderful project! I've had quite some hassles to get GirCore working and this seems like the perfect starting point. I'm currently playing around with the GTK UI systems, I've noticed that after creating a new project, it does not display the app icon (or any icons I place within data/icons. It did show an app icon for the first project I've created (keeping "MyApp" as the name) but now it won't display, not even for newly created projects with the template.

(This might very well just be my inexperience with the gresource system.)

image image

My file structure for the data/icons folder is unchanged.

data
|-- icons
    |-- hicolor
        |-- scalable
            |-- apps
                |-- media.laura.DeepSeaPlayer.svg
        |-- symbolic
            |-- apps
                |-- media.laura.DeepSeaPlayer-symbolic.svg
    |-- symbolic
        |-- actions
                |-- play-symbolic.svg
    |-- meson.build

media.laura.DeepSeaPlayer.gresource.xml

<?xml version="1.0" encoding="UTF-8"?>
<gresources>
  <gresource prefix="/media/laura/DeepSeaPlayer/">
  </gresource>
</gresources>

I'm running this through Rider on Fedora 40/Nobara.