[ubuntu-mono] [Bug 660588] Re: Path is included in TerminalServerClient item name

Matthew Wedgwood 660588 at bugs.launchpad.net
Tue Oct 19 21:36:57 BST 2010


** Also affects: gnome-do-plugins (Ubuntu)
   Importance: Undecided
       Status: New

-- 
Path is included in TerminalServerClient item name
https://bugs.launchpad.net/bugs/660588
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to gnome-do-plugins in ubuntu.

Status in Do Plugins Project: New
Status in “gnome-do-plugins” package in Ubuntu: New

Bug description:
When searching for terminal server client connections in Do, the items displayed include the full path to the .rdp file. In practice, this mostly obscures the name of the host. Here's a quick fix.

--- TerminalServerClient/src/TSClientItemSource.cs	2009-05-29 09:39:41 +0000
+++ TerminalServerClient/src/TSClientItemSource.cs	2010-10-14 15:06:01 +0000
@@ -63,6 +63,9 @@
 				
 				foreach (string file in clients) {
 					string name = file.Replace (".rdp", "");
+					if (name.LastIndexOf("/") >= 0) {
+						name = name.Substring(file.LastIndexOf("/") + 1);
+					}
 					items.Add (new TSClientItem (name, file));
 					Log<TSClientItemSource>.Debug ("rdp file '{0}' indexed.", file);
 				}





More information about the Ubuntu-mono mailing list