Zim

(Windows) Wrong current working directory when executing/opening relative file links

Bug #1296460 reported by Zbynek Vlach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Undecided
Unassigned

Bug Description

Zim 0.60
Windows 7 Pro 32 bit

I use relative file links in zim pages to execute file or open data file using mouse click. The file is in the attachment folder.
When the file is opened by the system , the current working directory passed to the executed application is probably not the current zim page attachment folder but the "notebook root" directory.

Example:
- MyNotebook:Languages:English:Anki
- There is a link "./anki.bat" in the Anki.txt page with command 'start "" /B "C:\Program Files\Anki\anki.exe" "-b ."' This command should (after the first execution) create an initial Anki configuration in the "Anki" folder. But the config data are created in the "MyNotebook" folder. Running the anki.bat from Windows Explorer works OK - config data are created in the "Anki" i.e. current folder".

This is probably also source of problems when I link a data file this way. After opening by mouse click the file is opened by the corresponding application, but the application does not work correctly.
Till now, I have mentioned this behaviour by the Ultra Recall (application freeze) and 602 Form Filler (saving of changes does not work). Again opening the same data file from the Windows Explorer works fine.

The "Document root" property is not set (is empty).

Tags: 2min
tags: added: 2min
Changed in zim:
status: New → Confirmed
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.