[gnome-panel] launcher: log error if directory creating fails
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] launcher: log error if directory creating fails
- Date: Sun, 21 Mar 2021 15:44:12 +0000 (UTC)
commit 57578211759a6a936229f54432c23a8f83f35eab
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 21 14:37:03 2021 +0200
launcher: log error if directory creating fails
Coverity CID: #1502716
modules/launcher/gp-launcher-utils.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/modules/launcher/gp-launcher-utils.c b/modules/launcher/gp-launcher-utils.c
index 484580332..15084a50e 100644
--- a/modules/launcher/gp-launcher-utils.c
+++ b/modules/launcher/gp-launcher-utils.c
@@ -254,7 +254,8 @@ gp_launcher_get_launchers_dir (void)
"launchers",
NULL);
- g_mkdir_with_parents (dir, 0700);
+ if (g_mkdir_with_parents (dir, 0700) == -1)
+ g_warning ("Failed to create %s: %s", dir, g_strerror (errno));
return dir;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]