aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2021-12-07 22:22:53 +0100
committerLuca Weiss <luca@z3ntu.xyz>2021-12-07 22:22:55 +0100
commit89415c01b730e3a1f6f66402b5c439fb04bda201 (patch)
tree339ca720e59d6dea5b9bf3c7f988e1bf6eed3f75 /src
parentafb37c43766bba9f3b5d8d827362fb843a85ca0f (diff)
downloadlibayatana-appindicator-89415c01b730e3a1f6f66402b5c439fb04bda201.tar.gz
libayatana-appindicator-89415c01b730e3a1f6f66402b5c439fb04bda201.tar.bz2
libayatana-appindicator-89415c01b730e3a1f6f66402b5c439fb04bda201.zip
Fix build with musl libc
canonicalize_file_name() is a GNU extension not supported by musl libc. Use realpath() from POSIX instead.
Diffstat (limited to 'src')
-rw-r--r--src/app-indicator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c
index a0e1553..cb0086f 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -2081,7 +2081,7 @@ append_snap_prefix (const gchar *path)
g_autofree gchar *canon_path = NULL;
if (snap != NULL && path != NULL) {
- canon_path = canonicalize_file_name(path);
+ canon_path = realpath(path, NULL);
if (g_str_has_prefix (canon_path, "/tmp/")) {
g_warning ("Using '/tmp' paths in SNAP environment will lead to unreadable resources");