head 1.3; access; symbols pkgsrc-2020Q1:1.2.0.82 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.104 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.100 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.98 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.96 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.94 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.92 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.90 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.88 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.86 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.84 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.80 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.78 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.76 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.74 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.72 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.70 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.68 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.2.0.66 pkgsrc-2015Q3-base:1.2 pkgsrc-2015Q2:1.2.0.64 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.62 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.2.0.60 pkgsrc-2014Q4-base:1.2 pkgsrc-2014Q3:1.2.0.58 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.56 pkgsrc-2014Q2-base:1.2 pkgsrc-2014Q1:1.2.0.54 pkgsrc-2014Q1-base:1.2 pkgsrc-2013Q4:1.2.0.52 pkgsrc-2013Q4-base:1.2 pkgsrc-2013Q3:1.2.0.50 pkgsrc-2013Q3-base:1.2 pkgsrc-2013Q2:1.2.0.48 pkgsrc-2013Q2-base:1.2 pkgsrc-2013Q1:1.2.0.46 pkgsrc-2013Q1-base:1.2 pkgsrc-2012Q4:1.2.0.44 pkgsrc-2012Q4-base:1.2 pkgsrc-2012Q3:1.2.0.42 pkgsrc-2012Q3-base:1.2 pkgsrc-2012Q2:1.2.0.40 pkgsrc-2012Q2-base:1.2 pkgsrc-2012Q1:1.2.0.38 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.36 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.34 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.32 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.30 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.28 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.26 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.24 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.22 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.20 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.18 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.16 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.14 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.12 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.10 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.8 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.6 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.4 pkgsrc-2008Q1:1.2.0.2 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.1.1.1.0.2 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2020.05.28.12.06.17; author nia; state dead; branches; next 1.2; commitid odH4WHkhORWKf0aC; 1.2 date 2008.02.28.20.59.03; author drochner; state Exp; branches; next 1.1; 1.1 date 2007.11.22.20.50.09; author drochner; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.11.22.20.50.09; author drochner; state Exp; branches; next ; desc @@ 1.3 log @editors: remove notecase "The free NoteCase Outliner has been discontinued in 2008, in favor of a much advanced variant of the program called NoteCase Pro. NoteCase Pro, albeit a commercial product, can be used for free with some limitations, but even the free mode of NoteCase Pro is much more advanced than the old NoteCase. Proceed to NoteCase Pro: ..." @ text @$NetBSD: patch-ae,v 1.2 2008/02/28 20:59:03 drochner Exp $ --- src/lib/FilePath.cpp.orig 2008-02-25 11:38:32.000000000 +0100 +++ src/lib/FilePath.cpp @@@@ -23,6 +23,8 @@@@ #include #endif +#include "../config.h" + #define PATH_DELIMITERS "\\/" std::string GetTempDirectory() @@@@ -106,31 +108,7 @@@@ std::string GetAppPath() ::GetModuleFileName(NULL, buf, 511); path = buf; #else - //code adapted from public domain code by Nicolai Haehnle - char linkname[64]; /* /proc//exe */ - int ret; - - /* Get our PID and build the name of the link in /proc */ - pid_t pid = getpid(); - - if (snprintf(linkname, sizeof(linkname), "/proc/%i/exe", pid) < 0) - return path; //error - - /* Now read the symbolic link */ - char buffer[2048]; - ret = readlink(linkname, buffer, sizeof(buffer)); - - /* In case of an error, leave the handling up to the caller */ - if (ret == -1) - return path; - - /* Report insufficient buffer size */ - if (ret >= (int)sizeof(buffer)) - return path; - - buffer[ret] = '\0'; //terminate the buffer - - path = buffer; + path = INSTALL_PREFIX "/bin/notecase"; #endif found = true; } @ 1.2 log @update to 1.8.1 changes: -bug fixes -better html export -option to wrap tree with titles -translation updates -execute attachment with double-click @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Initial revision @ text @d3 1 a3 1 --- src/lib/FilePath.cpp.orig 2007-07-31 07:47:28.000000000 +0200 d13 2 a14 2 std::string GetHomeDir() @@@@ -95,31 +97,7 @@@@ std::string GetAppPath() @ 1.1.1.1 log @import notecase-1.7.2, a Hierarchical note manager pkgsrc notes: -modified to use system libz instead of a bundled copy -disabled the option to create self-extracting combinations of the executable with a data file. This relies on reliable deduction of the currrent executable's path which cannot be done in a portable way, and it doesn't make much sense anyway because that thing needs a zillion of shared libraries. @ text @@