Skip to content

Conversation

@bigos
Copy link

@bigos bigos commented Jan 19, 2023

For some reason, :default_flags do not work for me. Inspecting the error shows the following:

#<GIR:ENUM-DESC {1003AE7613}>
--------------------
Class: #<STANDARD-CLASS GIR:ENUM-DESC>
--------------------
 Group slots by inheritance [ ]
 Sort slots alphabetically  [X]

All Slots:
[ ]  METHODS-DICT = NIL
[ ]  NAME         = "ApplicationFlags"
[ ]  VALUES-DICT  = (("flags_none" . 0) ("is_service" . 1) ("is_launcher" . 2) ("handles_open" . 4) ("handles_command_line" . 8) ("send_environment" . 16) ("non_unique" . 32) ("can_override_app_id" . 64) ("allow_replacement" . 128) ("replace" . 256))

@andy128k
Copy link
Owner

:flags_none is deprecated. https://docs.gtk.org/gio/flags.ApplicationFlags.html
Check your version of gio.

@bigos
Copy link
Author

bigos commented Jan 19, 2023

Well spotted. But you are correct about the older version I use.
sudo ldconfig -v | grep gio
gives
libgio-2.0.so.0 -> libgio-2.0.so.0.7200.4

Do you have any recommendation for such case?

@andy128k
Copy link
Owner

That's unfortunate change in upstream.

Probably the best option is to use 0 instead of (gir:nget *gio* "ApplicationFlags" :default-flags) to be compatible with all versions of gio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants