mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
gportalsupport: Force use /usr/bin/snapctl to get snap connection status
Do not search in path for snapctl to avoid it to be potentially overridden by changing the PATH env variable. Still allow testing by using an ifdef to check if we're building for the test files or not.
This commit is contained in:
@@ -229,6 +229,7 @@ if host_machine.system() != 'windows'
|
||||
'live-g-file' : {},
|
||||
'portal-support-none' : {
|
||||
'extra_sources': ['../gportalsupport.c', '../gsandbox.c'],
|
||||
'c_args': ['-DG_PORTAL_SUPPORT_TEST'],
|
||||
'suite': ['portal-support'],
|
||||
},
|
||||
'portal-support-env-var' : {
|
||||
@@ -237,10 +238,12 @@ if host_machine.system() != 'windows'
|
||||
},
|
||||
'portal-support-snap' : {
|
||||
'extra_sources': ['../gportalsupport.c', '../gsandbox.c', 'portal-support-utils.c'],
|
||||
'c_args': ['-DG_PORTAL_SUPPORT_TEST'],
|
||||
'suite': ['portal-support'],
|
||||
},
|
||||
'portal-support-snap-classic' : {
|
||||
'extra_sources': ['../gportalsupport.c', '../gsandbox.c', 'portal-support-utils.c'],
|
||||
'c_args': ['-DG_PORTAL_SUPPORT_TEST'],
|
||||
'suite': ['portal-support'],
|
||||
},
|
||||
'resolver-parsing' : {'dependencies' : [network_libs]},
|
||||
|
Reference in New Issue
Block a user