Path is included in TerminalServerClient item name

Bug #660588 reported by Matthew Wedgwood
2
Affects Status Importance Assigned to Milestone
Do Plugins
Fix Released
Wishlist
Robert Dyer
gnome-do-plugins (Ubuntu)
New
Undecided
Unassigned

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);
     }

Revision history for this message
Robert Dyer (psybers) wrote :

Fixed in rev 700. Note that I decided to display '.rdp' in the name (but no path), as this now mimics how tsclient displays bookmarks.

Changed in do-plugins:
status: New → Fix Committed
importance: Undecided → Wishlist
assignee: nobody → Robert Dyer (psybers)
Changed in do-plugins:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.