diff options
Diffstat (limited to 'deskutils/tomboy/files')
-rw-r--r-- | deskutils/tomboy/files/patch-Tomboy_Utils.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/deskutils/tomboy/files/patch-Tomboy_Utils.cs b/deskutils/tomboy/files/patch-Tomboy_Utils.cs new file mode 100644 index 000000000..83f99b06e --- /dev/null +++ b/deskutils/tomboy/files/patch-Tomboy_Utils.cs @@ -0,0 +1,28 @@ +--- Tomboy/Utils.cs.orig Sun Feb 25 02:24:01 2007 ++++ Tomboy/Utils.cs Mon Mar 26 20:06:25 2007 +@@ -801,23 +801,12 @@ + } + + [DllImport("libc")] +- private static extern int prctl (int option, +- byte [] arg2, +- IntPtr arg3, +- IntPtr arg4, +- IntPtr arg5); ++ private static extern void setproctitle(byte [] fmt, byte [] str_arg); + + // From Banshee: Banshee.Base/Utilities.cs + public static void SetProcessName (string name) + { +- if (prctl (15 /* PR_SET_NAME */, +- Encoding.ASCII.GetBytes (name + "\0"), +- IntPtr.Zero, +- IntPtr.Zero, +- IntPtr.Zero) != 0) +- throw new ApplicationException ( +- "Error setting process name: " + +- Mono.Unix.Native.Stdlib.GetLastError ()); ++ setproctitle(Encoding.ASCII.GetBytes("%s\0"), Encoding.ASCII.GetBytes(name + "\0")); + } + + static void RegisterSignalHandlers () |