diff -Nru lxtask-0.1.3/debian/changelog lxtask-0.1.3/debian/changelog --- lxtask-0.1.3/debian/changelog 2011-03-19 16:47:49.000000000 +0000 +++ lxtask-0.1.3/debian/changelog 2011-03-27 11:48:27.000000000 +0000 @@ -1,3 +1,10 @@ +lxtask (0.1.3-2ubuntu3~ppa1) natty; urgency=low + + * debian/patch/91_fix_process_names.patch: + - From upstream, fix process name which had only 15 characters. + + -- Julien Lavergne Sun, 27 Mar 2011 13:48:17 +0200 + lxtask (0.1.3-2ubuntu2) natty; urgency=low * debian/patches/81_fix_pl_translation.patch: diff -Nru lxtask-0.1.3/debian/patches/91_fix_process_names.patch lxtask-0.1.3/debian/patches/91_fix_process_names.patch --- lxtask-0.1.3/debian/patches/91_fix_process_names.patch 1970-01-01 00:00:00.000000000 +0000 +++ lxtask-0.1.3/debian/patches/91_fix_process_names.patch 2011-03-26 22:04:45.000000000 +0000 @@ -0,0 +1,44 @@ +From 626fdf69db6fd5b5d2eff28701c01036d7f000b0 Mon Sep 17 00:00:00 2001 +From: dgod +Date: Fri, 25 Mar 2011 23:34:29 +0800 +Subject: [PATCH] fix process name only have 15 chars + +--- + src/xfce-taskmanager-linux.c | 21 +++++++++++++++++++-- + 1 files changed, 19 insertions(+), 2 deletions(-) + +diff --git a/src/xfce-taskmanager-linux.c b/src/xfce-taskmanager-linux.c +index 584b260..858ea30 100644 +--- a/src/xfce-taskmanager-linux.c ++++ b/src/xfce-taskmanager-linux.c +@@ -65,8 +65,25 @@ void get_task_details(gint pid,struct task *task) + + read(fd,buf,2048); + p=strchr(buf,'(');p++; +- for(len=0;*p!=')';len++) task->name[len]=*p++; +- task->name[len]=0;p++; ++ for(len=0;*p!=')';len++) task->name[len]=*p++; ++ task->name[len]=0;p++; ++ if(len>=15) ++ { ++ FILE *fp; ++ sprintf(line,"/proc/%d/cmdline",pid); ++ fp=fopen(line,"r"); ++ if(fp) ++ { ++ char *p; ++ fscanf(fp, "%255s", line); ++ fclose(fp); ++ p=strrchr(line,'/'); ++ if(p != NULL) ++ strcpy(task->name, p+1); ++ else ++ strcpy(task->name, line); ++ } ++ } + + sscanf(p, "%1s %i %s %s %s %s %s %s %s %s %s %i %i %s %s %s %i", + task->state, // processstate +-- +1.7.0.1 + diff -Nru lxtask-0.1.3/debian/patches/series lxtask-0.1.3/debian/patches/series --- lxtask-0.1.3/debian/patches/series 2011-03-19 16:46:06.000000000 +0000 +++ lxtask-0.1.3/debian/patches/series 2011-03-27 11:48:00.000000000 +0000 @@ -2,3 +2,4 @@ 80_translations.patch 81_fix_pl_translation.patch 90_window_icon.patch +91_fix_process_names.patch