Zim

Can't add application for opening text that has a quote in the filesystem path

Bug #1641062 reported by Adrian Fita
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Expired
Undecided
Unassigned

Bug Description

I tried to add the following application in Preferences->Applications->Set default text editor: C:\Program Files (x86)\Programmer's Notepad\pn.exe . It's this application: http://www.pnotepad.org/ which I'm pretty fond of: it's fast and does a good job as a text editor. By default it installs itself in "C:\Program Files (x86)\Programmer's Notepad\". It looks like the single quote in the filesystem path confuses Zim.

I received the following error:

--
This is zim 0.65
Platform: nt
Locale: en_US cp1252
FS encoding: mbcs
Python: (2, 7, 11, 'final', 0)
Gtk: (2, 24, 10)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: 065
  revision: 805 <email address hidden>
  date: 2015-11-01 15:42:45 +0100

======= Traceback =======
  File "zim\gui\widgets.pyo", line 3106, in do_response
  File "zim\gui\applications.pyo", line 905, in do_response_ok
  File "zim\applications.pyo", line 146, in tryexec
  File "zim\gui\applications.pyo", line 554, in cmd
  File "zim\parsing.pyo", line 45, in split_quoted_strings
ValueError: Unmatched quote
--

Thanks.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Did you try putting the path in double quotes?

Changed in zim:
status: New → Incomplete
Revision history for this message
Adrian Fita (afita) wrote :

Indeed, putting the path in double quotes works. The exception is not displayed anymore, the entry is added in the Application drop-down list and when I click on Tools->Edit Source the source is correctly opened in the editor.

But now, I'm thinking that instead of the popup window with the exception, a warning with a hint to the user should be displayed, or something.

Also, after the window with the exception is displayed, the entry in the Application drop-down is created after-all, with the incorrect path that causes the exception when I click on Tools->Edit Source.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Zim because there has been no activity for 60 days.]

Changed in zim:
status: Incomplete → Expired
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.