Skip to content
Snippets Groups Projects
Commit 16055b93 authored by John Lindgren's avatar John Lindgren Committed by Jannis Pohlmann
Browse files

Fix handling %U when launching multiple files with an app (bug #7456).

GIO returns a newly allocated GAppInfo every time
g_app_info_get_default_for_type() is called. This means that if we use a
GHashTable and g_direct_hash() to associate GAppInfos with files to be
launched with each of them, we will actually end up with multiple
GAppInfos that are the same, and each of them will only have a single
file associated.

To fix this, we now use a fake hash function that causes GHashTable to
always search the GAppInfo in the collision list.
parent d47f4053
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment