Gsimplecal is a lightweight calendar applet written in C++ using GTK. It was originally made for use with tint2 panel in the openbox window manager (to be launched upon clock click), but of course it works in any environment (just bind gsimplecal to some hotkey). For easier integration, when started it first shows up, when launched again it closes the running instance (no need to write wrapper scripts or whatever). It can be configured to not only show the calendar, but also display multiple clocks for different world timezones Submission from Alessandro De Laurenzis, thanks! Tweaks and OK sthen@
17 lines
558 B
Plaintext
17 lines
558 B
Plaintext
$OpenBSD: patch-src_Unique_cpp,v 1.1.1.1 2019/06/16 07:37:33 kirby Exp $
|
|
|
|
Index: src/Unique.cpp
|
|
--- src/Unique.cpp.orig
|
|
+++ src/Unique.cpp
|
|
@@ -108,7 +108,9 @@ void Unique::getPathnameFromFile(const char *const pat
|
|
|
|
void Unique::getPathnameFromExe(char* pathname)
|
|
{
|
|
-#if HAVE_GETEXECNAME && HAVE_STRLCPY
|
|
+#ifdef __OpenBSD__
|
|
+ strlcpy(pathname, "${PREFIX}/bin/gsimplecal", PATH_MAX + 1);
|
|
+#elif HAVE_GETEXECNAME && HAVE_STRLCPY
|
|
// Try getexecname (Solaris).
|
|
const char* execname = getexecname();
|
|
strlcpy(pathname, execname, PATH_MAX + 1);
|