From d6e83c661c322d384574186dc2a2c9bf23b85755 Mon Sep 17 00:00:00 2001
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
Date: Sat, 20 Aug 2011 03:08:02 -0500
Subject: Fix TDE filepickers in OpenOffice

---
 libreoffice/3.3.2/patches/NOTES                    | 3 +++
 libreoffice/3.3.2/patches/libreoffice-trinity.diff | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 libreoffice/3.3.2/patches/NOTES

diff --git a/libreoffice/3.3.2/patches/NOTES b/libreoffice/3.3.2/patches/NOTES
new file mode 100644
index 0000000..15a4f25
--- /dev/null
+++ b/libreoffice/3.3.2/patches/NOTES
@@ -0,0 +1,3 @@
+This patchset is intended for Debian and has not been tested on other systems, however the patch libreoffice-trinity.diff should apply cleanly to a stock LibreOffice source tree and function properly if enabled.
+
+After patch application, you will need to rerun autoconf from within the libreoffice-build directory in order to apply the changes made to configure.in
diff --git a/libreoffice/3.3.2/patches/libreoffice-trinity.diff b/libreoffice/3.3.2/patches/libreoffice-trinity.diff
index 7431c4c..812e4b0 100644
--- a/libreoffice/3.3.2/patches/libreoffice-trinity.diff
+++ b/libreoffice/3.3.2/patches/libreoffice-trinity.diff
@@ -10604,7 +10604,7 @@ diff -urN libreoffice-build/patches/dev300/trinity-modules.diff libreoffice-buil
 ++#endif
 ++
 ++        // The executable name
-++        const char *pFname = "tdefilepicker";
+++        char pFname[1024]; snprintf(pFname, sizeof pFname, "%s/%s", getenv("OLDPWD"), "tdefilepicker");
 ++
 ++        // ID of the main window
 ++        const int nIdLen = 20;
-- 
cgit v1.2.3

