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

default-flags does not work #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

default-flags does not work #93

wants to merge 1 commit into from

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