[SM-Commit] GIT changes to test-1.13 sorcery by Andrew Stitt (0f0bac6e8439c4afadc331214eafeb1d352907a2)

Andrew Stitt scm at mail.sourcemage.org
Sun Aug 13 15:41:56 EDT 2006


GIT changes to test-1.13 sorcery by Andrew Stitt <astitt at sourcemage.org>:

 ChangeLog     |    3 +++
 usr/sbin/cast |    5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 0f0bac6e8439c4afadc331214eafeb1d352907a2
Author: Paul Mahon <pmahon at sourcemage.org>
Commit: Andrew Stitt <astitt at sourcemage.org>

    cast: Shorten screen names (fixes bug #12133)
    (cherry picked from c2105553843df19c00cf8bbec35a6204df9c780c commit)

diff --git a/ChangeLog b/ChangeLog
index 865ce77..df5235b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2006-08-13 Paul Mahon <pmahon at sourcemage.org>
+	* cast: shorten screen names (fixes bug #12133)
+
 2006-08-12 Andrew Stitt <astitt at sourcemage.org>
 	* mirrors/KDE: remove dead mirrors, bug 12978
 
diff --git a/usr/sbin/cast b/usr/sbin/cast
index 9c39ec2..a45ec57 100755
--- a/usr/sbin/cast
+++ b/usr/sbin/cast
@@ -837,8 +837,9 @@ else
   if  [[ $SCREEN == on ]]         && 
       [[ $TERM != screen ]]
   then
-    export SCREEN_NAME="ScreenCast $*"
-    screen_start "ScreenCast $*" "$0" "$@"
+    SCREEN_NAME="ScreenCast $*"
+    export SCREEN_NAME="${SCREEN_NAME:0:64}$(echo $SCREEN_NAME | md5sum)"
+    screen_start "$SCREEN_NAME" "$0" "$@"
     echo "WTF?? We should not get here. screen_start execs!"
     exit 1
   fi



More information about the SM-Commit mailing list