Zim

Opening inter-notebook links produces extra entries in system tray

Bug #701625 reported by Ralph
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Fix Released
High
Unassigned

Bug Description

When I click an inter-notebook link (in this wiki syntax: "notebook2?page1") the page is opened in a new window, even though the notebook in question is already opened. Also, a new entry is added to the notebook list in the system tray. The text for this extra entry has this format "file:///<location of notebooks>/notebook2?page1".

Info:
Zim 0.49
OS: Ubuntu 10.10 and RHEL 6 (both x86-64)
I attach a screenshot of the system tray.

Debug info about versions:
christian@ubuntuPC:~$ zim -D
INFO: This is zim 0.49
DEBUG: Python version is (2, 6, 6, 'final', 0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
 branch: pyzim-trunk
 revision: 321 <email address hidden>
 date: 2010-11-02 21:14:14 +0100

and

DEBUG: Gtk version is (2, 22, 0)
DEBUG: Pygtk version is (2, 21, 0)

Here's some debug output, when opening the link:
DEBUG: Loading /home/christian/.config/zim/style.conf
DEBUG: Loaded plugin attachmentbrowser (<AttachmentBrowserPlugin object at 0x156a550 (zim+plugins+PluginClass at 0x15a9680)>)
DEBUG: Registered plugin <InsertDiagramPlugin object at 0x157c140 (zim+plugins+PluginClass at 0x15a4840)> for image type "diagram"
DEBUG: Loaded plugin diagrameditor (<InsertDiagramPlugin object at 0x157c140 (zim+plugins+PluginClass at 0x15a4840)>)
DEBUG: Registered plugin <InsertEquationPlugin object at 0x157c780 (zim+plugins+PluginClass at 0x15a96e0)> for image type "equation"
DEBUG: Loaded plugin equationeditor (<InsertEquationPlugin object at 0x157c780 (zim+plugins+PluginClass at 0x15a96e0)>)
DEBUG: Loaded plugin inlinecalculator (<InlineCalculatorPlugin object at 0x1587230 (zim+plugins+PluginClass at 0x15ba240)>)
DEBUG: Loaded plugin linkmap (<LinkMapPlugin object at 0x1587320 (zim+plugins+PluginClass at 0x15ba760)>)
DEBUG: Loaded plugin printtobrowser (<PrintToBrowserPlugin object at 0x187d140 (zim+plugins+PluginClass at 0x15ba460)>)
DEBUG: Loaded plugin tasklist (<TaskListPlugin object at 0x187d5f0 (zim+plugins+tasklist+TaskListPlugin at 0x15df4e0)>)
DEBUG: Sending to daemon: ["ping",[],{}]

DEBUG: Daemon replied: "Ack"
DEBUG: Sending to daemon: ["vivicate",["zim.plugins.trayicon.AppIndicatorTrayIcon","TrayIcon"],{}]

DEBUG: Daemon replied: true
DEBUG: Loaded plugin trayicon (<TrayIconPlugin object at 0x187daf0 (zim+plugins+PluginClass at 0x13b3120)>)
DEBUG: Accelmap: /home/christian/.config/zim/accelmap
DEBUG: Opening notebook: file:///home/christian/Dropbox/.notes/SIMAIR?BUM 2008
DEBUG: Loading /home/christian/Dropbox/.notes/SIMAIR/notebook.zim
DEBUG: Cache dir: /home/christian/Dropbox/.notes/SIMAIR/.zim
DEBUG: Index database file: /home/christian/Dropbox/.notes/SIMAIR/.zim/index.db
DEBUG: Loading /home/christian/Dropbox/.notes/SIMAIR/.zim/state.conf
INFO: Starting background index update
DEBUG: Action: set_pathbar_recent
INFO: Open page: <FileStorePage: BUM 2008> (<Path: BUM 2008>)
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/zim/plugins/attachmentbrowser.py", line 677, in on_open_page
    self.set_current_folder(str(self.plugin.ui.notebook.get_attachments_dir(page)+os.sep))
  File "/usr/lib/pymodules/python2.6/zim/plugins/attachmentbrowser.py", line 604, in set_current_folder
    if (self.plugin.uistate['active']):
KeyError: 'active'
DEBUG: Wrote /home/christian/.config/zim/preferences.conf
INFO: Index update done

Revision history for this message
Ralph (christian-asker) wrote :
Changed in zim:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Will commit fix in rev341

Changed in zim:
status: Confirmed → Fix Committed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fix released in zim 0.50

Changed in zim:
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.