[Pidgin] #607: "Command" option for sounds can't handle file names with spaces

Pidgin trac at pidgin.im
Sat May 5 17:28:14 EDT 2007


#607: "Command" option for sounds can't handle file names with spaces
---------------------------+------------------------------------------------
  Reporter:  Dragonslicer  |       Owner:                
      Type:  defect        |      Status:  closed        
  Priority:  minor         |   Milestone:  2.0.1         
 Component:  pidgin (gtk)  |     Version:  2.0           
Resolution:  fixed         |    Keywords:  sound filename
   Pending:  0             |  
---------------------------+------------------------------------------------
Comment (by charkins):

 My first fix was poor (just surrounded filename with single quotes).
 Updated this to delegate the quoting to glib's g_shell_quote(), which will
 take care of escaping quotes inside the filename.

 Be aware that in the future, specifying a command like artsplay "%s" or
 artsplay '%s' will break things (due to double quoting). You'll want to
 switch to artsplay %s or even just artsplay (pidgin automatically appends
 %s if it isn't explicitly specified in the command).

-- 
Ticket URL: <http://developer.pidgin.im/ticket/607#comment:3>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list