GLib doesn't find the ui resource



Hello list,

i have written some ui files which are compiled through make [1]. I
installed the compiled file in /usr/share/gnome-publisher.

Also i used this lines to add stuff from the resource:
builder = Gtk.Builder()

builder.add_from_resource("/org/gnome/Publisher/ui/main_intro.ui") [2]

But if i'm running my app, i'm getting:

/home/sascha/PycharmProjects/gnome-publisher/.env/bin/python3
/home/sascha/PycharmProjects/gnome-publisher/bin/gnome-publisher
Traceback (most recent call last):
  File
"/home/sascha/PycharmProjects/gnome-publisher/src/gnome_publisher/__main__.py",
line 54, in do_startup
    builder.add_from_resource('/org/gnome/Publisher/gtk/app_menu.ui')
GLib.Error: g-resource-error-quark: The resource at
“/org/gnome/Publisher/gtk/app_menu.ui” does not exist (0)
Traceback (most recent call last):
  File
"/home/sascha/PycharmProjects/gnome-publisher/src/gnome_publisher/__main__.py",
line 96, in do_activate
    builder.add_from_resource("/org/gnome/Publisher/ui/main_intro.ui")
GLib.Error: g-resource-error-quark: The resource at
“/org/gnome/Publisher/ui/main_intro.ui” does not exist (0)

But where the GLib searches for the file?

[1]
https://github.com/saigkill/gnome-publisher/blob/master/data/org.gnome.Publisher.gresource.xml
[2]
https://github.com/saigkill/gnome-publisher/blob/master/src/gnome_publisher/__main__.py

-- 
Sascha Manns
Maifeldstraße 10
56727 Mayen

P: +49-2651-4014045
W: http://saigkill.tuxfamily.org



Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]