bluefish, remove "dirty hack", not needed anymore for the XDG variables (#8653)

This commit is contained in:
Schrijvers Luc
2023-05-17 07:29:42 +02:00
committed by GitHub
parent 77d6746ccb
commit 5ddf3cafb1
2 changed files with 1 additions and 30 deletions

View File

@@ -8,7 +8,7 @@ Linux, FreeBSD, MacOS-X, Windows, OpenBSD, Solaris and Haiku."
HOMEPAGE="https://bluefish.openoffice.nl/"
COPYRIGHT="1998-2020 Olivier Sessink and others."
LICENSE="GNU GPL v3"
REVISION="1"
REVISION="2"
SOURCE_URI="https://www.bennewitz.com/bluefish/stable/source/bluefish-$portVersion.tar.gz"
CHECKSUM_SHA256="1b9fc488caecc082e3ef89053104a20ecccefe01730c3ad97ce435089001beb8"
PATCHES="bluefish-$portVersion.patchset"

View File

@@ -1,32 +1,3 @@
From 44acc677ba81fcfee8469fade3f3852799c3dfec Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Mon, 21 Nov 2022 10:44:03 +0100
Subject: Dirty hack for XDG variables
diff --git a/src/bluefish.c b/src/bluefish.c
index f1cad22..6e2e1b9 100644
--- a/src/bluefish.c
+++ b/src/bluefish.c
@@ -252,6 +252,14 @@ int main(int argc, char *argv[])
osx_setenv(&argc, &argv);
#endif
+#ifdef __HAIKU__
+ g_setenv ("XDG_CONFIG_DIRS", "/boot/system/settings", FALSE);
+ g_setenv ("XDG_DATA_HOME", "/boot/home/config/non-packaged/data", FALSE);
+ g_setenv ("XDG_CONFIG_HOME", "/boot/home/config/settings", FALSE);
+ g_setenv ("XDG_CACHE_HOME", "/boot/home/config/cache", FALSE);
+ g_setenv ("XDG_DATA_DIRS", "/boot/system/non-packaged/data:/boot/system/data", FALSE);
+#endif
+
#ifdef MAC_INTEGRATION
GPollFunc orig_poll_func;
GPollFunc gdk_poll_func;
--
2.37.3
From d3be47eddfba095e1797750416a32a2d7aa799f9 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Tue, 16 May 2023 19:28:02 +0200