From 1d239259e286922a7f5599276ae4eb955b760fae Mon Sep 17 00:00:00 2001 From: Sergey Kiselev Date: Wed, 18 Feb 2026 15:03:38 +0500 Subject: [PATCH] sysutils/obshutdown: cosmetic chenges in patches --- sysutils/obshutdown/files/patch-src_main.c | 18 +++++++++++++++++- sysutils/obshutdown/files/patch-src_varibles.h | 7 ++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/sysutils/obshutdown/files/patch-src_main.c b/sysutils/obshutdown/files/patch-src_main.c index 6fcb45c..fd9821d 100644 --- a/sysutils/obshutdown/files/patch-src_main.c +++ b/sysutils/obshutdown/files/patch-src_main.c @@ -38,7 +38,15 @@ tmpfile = g_build_filename(g_get_tmp_dir(), "obshutdown.lock", NULL); if(g_file_test(tmpfile, G_FILE_TEST_EXISTS)) { -@@ -288,13 +302,6 @@ void initDataDefault(void) +@@ -112,7 +126,6 @@ void migrateConfigToXdgDir(void) + gchar *oldFilename, *newFilename, *xdgPath; + GFile *oldFile, *newFile; + +- + xdgPath = g_build_filename(g_get_user_config_dir(), OBS_NAME, NULL); + if (g_file_test(xdgPath, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) { + g_free(xdgPath); +@@ -288,13 +301,6 @@ void initDataDefault(void) /* Configs paths */ myOptions.rcfile = getRcPath(); myOptions.trcfile = NULL; @@ -52,3 +60,11 @@ } void freeData(void) +@@ -336,7 +342,6 @@ void freeData(void) + g_free(myOptions.rcfile); + if (myOptions.theme) + g_free(myOptions.trcfile); +- + } + + inline void initGtk(int *argc, char ***argv) diff --git a/sysutils/obshutdown/files/patch-src_varibles.h b/sysutils/obshutdown/files/patch-src_varibles.h index 10c5c18..07f25db 100644 --- a/sysutils/obshutdown/files/patch-src_varibles.h +++ b/sysutils/obshutdown/files/patch-src_varibles.h @@ -1,6 +1,11 @@ --- src/varibles.h.orig 2013-01-16 09:06:19 UTC +++ src/varibles.h -@@ -29,25 +29,25 @@ +@@ -24,30 +24,29 @@ + #include + #include "types.h" + +- + #define OBS_NAME "obshutdown" #define OBS_TITLE "Openbox Shutdown Dialog" #define OBS_VERSION "0.1-rc1" /* !!!!!!!!!!!!!!!!!!!!!! */