From 0f36b3c4126b3b319994c926970a12f6de45d23a Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 21 Aug 2013 22:30:02 +0200 Subject: [PATCH] linux bubbles: add debug information for #1362 --- SparkleShare/Linux/SparkleBubbles.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SparkleShare/Linux/SparkleBubbles.cs b/SparkleShare/Linux/SparkleBubbles.cs index 50986c1e..dac64f95 100755 --- a/SparkleShare/Linux/SparkleBubbles.cs +++ b/SparkleShare/Linux/SparkleBubbles.cs @@ -35,6 +35,16 @@ namespace SparkleShare { return; try { + // Debug information for https://github.com/hbons/SparkleShare/issues/1362 + if (title.Length > 255) { + SparkleLogger.LogInfo ("Notification", "Long string detected, truncating 'title'"); + title = title.Substring (0, 255) + "..."; + + } else if (subtext.Length > 255) { + SparkleLogger.LogInfo ("Notification", "Long string detected, truncating 'subtext'"); + title = title.Substring (0, 255) + "..."; + } + Notification notification = new Notification () { Summary = title, Body = subtext,