Zim

Zim doesn't remember the default Notebook

Bug #663888 reported by Ikus-Soft
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Incomplete
Undecided
Unassigned

Bug Description

I'm using Zim 0.48 on Windows XP SP3 and selecting a default Notebook in the Open Notebook windows is not remember at the next run.

Zim alway prompt for the selection of the Notebook when opening.

Step to reproduce :
1. Open Zim - the Open Notebook windows promt you to select a Notebook
2. Select a Default notebook un the drop down list
3. Click on 'OK' button
4. The notebook get open.
5. Close Zim
6. Open zim

Current behaviour : Zim prompt for the notebook again.
Expected behaviour : Zim should open the default notebook selected in the previous run.

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

Just spent some time testing on Windows XP but can't reproduce this. Could you check the error log when running with "zim -D" ?

Changed in zim:
status: New → Incomplete
Revision history for this message
smu (smu) wrote : Re: [Bug 663888] Re: Zim doesn't remember the default Notebook
Download full text (3.3 KiB)

I can confirm the behavior on winXP with the same zim version 0.48.
Unfortunatly I can not find anything related in the debug output (see
below).

INFO: This is zim 0.48
DEBUG: Python version is (2, 6, 4, 'final', 0)
DEBUG: Platform is nt
DEBUG: Zim revision is:
 branch: zim
 revision: 240 <email address hidden>
 date: 2010-08-01 21:49:19 -0400

DEBUG: Running from a source dir: C:\Programme\Zim Desktop Wiki
DEBUG: Set XDG_DATA_HOME to C:\Dokumente und Einstellungen\matzarak\.local\share
DEBUG: Set XDG_DATA_DIRS to [<Dir: C:\usr\share>, <Dir: C:\usr\local\share>]
DEBUG: Set XDG_CONFIG_HOME to C:\Dokumente und Einstellungen\matzarak\.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: C:\etc\xdg>]
DEBUG: Set XDG_CACHE_HOME to C:\Dokumente und Einstellungen\matzarak\.cache
DEBUG: Running command: gui
DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\notebook.zim
DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Statistics\notebook.zim
DEBUG: Opening dialog "Open Notebook - Zim"
DEBUG: Wrote C:\Dokumente und Einstellungen\matzarak\.config\zim\notebooks.list
DEBUG: Dialog response OK
DEBUG: Wrote C:\Dokumente und Einstellungen\matzarak\.config\zim\notebooks.list
DEBUG: Closed dialog "Open Notebook"
DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\.config\zim\preferences.conf
DEBUG: Gtk version is (2, 14, 7)
DEBUG: Pygtk version is (2, 12, 1)
DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\.config\zim\style.conf
DEBUG: Loaded plugin calendar (<CalendarPlugin object at 0x113dcb0 (zim+plugins+PluginClass at 0x1839140)>)
DEBUG: Loaded plugin printtobrowser (<PrintToBrowserPlugin object at 0x11429e0 (zim+plugins+PluginClass at 0x1839340)>)
DEBUG: Loaded plugin tasklist (<TaskListPlugin object at 0x1143288 (zim+plugins+tasklist+TaskListPlugin at 0x1839550)>)
DEBUG: Loaded plugin trayicon (<TrayIconPlugin object at 0x1153eb8 (zim+plugins+PluginClass at 0x1839790)>)
ERROR: Failed to load plugin versioncontrol
Traceback (most recent call last):
  File "zim\__init__.pyo", line 377, in load_plugin
AssertionError: Dependencies failed for plugin versioncontrol
DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\.config\zim\customtools\to-tomorrow-usercreated.desktop
DEBUG: Accelmap: C:\Dokumente und Einstellungen\matzarak\.config\zim\accelmap
DEBUG: Opening notebook: file:///C:/Dokumente und Einstellungen/matzarak/Desktop/My Dropbox/zim/Notes
DEBUG: Cache dir: C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\.zim
DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\notebook.zim
DEBUG: Index database file: C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\.zim\index.db
DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\.zim\state.conf
INFO: Starting background index update
DEBUG: Action: toggle_toolbar
DEBUG: Action: set_pathbar_none
DEBUG: Action: set_toolbar_icons_and_text
DEBUG: Action: set_toolbar_icons_large
C:\Programme\Zim Desktop Wiki\zim.exe\zim\gui\__init__.py:1847: DeprecationWarning:
INFO: Open page: <FileStorePage: Calendar:2010:10:21> (<HistoryRecord...

Read more...

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :
Download full text (3.7 KiB)

Could you check the content of C:\Dokumente und
Einstellungen\matzarak\.config\zim\notebooks.list ?

-- Jaap

On Thu, Oct 21, 2010 at 5:29 PM, smu <email address hidden> wrote:
> I can confirm the behavior on winXP with the same zim version 0.48.
> Unfortunatly I can not find anything related in the debug output (see
> below).
>
>
> INFO: This is zim 0.48
> DEBUG: Python version is (2, 6, 4, 'final', 0)
> DEBUG: Platform is nt
> DEBUG: Zim revision is:
>        branch: zim
>        revision: 240 <email address hidden>
>        date: 2010-08-01 21:49:19 -0400
>
> DEBUG: Running from a source dir: C:\Programme\Zim Desktop Wiki
> DEBUG: Set XDG_DATA_HOME to C:\Dokumente und Einstellungen\matzarak\.local\share
> DEBUG: Set XDG_DATA_DIRS to [<Dir: C:\usr\share>, <Dir: C:\usr\local\share>]
> DEBUG: Set XDG_CONFIG_HOME to C:\Dokumente und Einstellungen\matzarak\.config
> DEBUG: Set XDG_CONFIG_DIRS to [<Dir: C:\etc\xdg>]
> DEBUG: Set XDG_CACHE_HOME to C:\Dokumente und Einstellungen\matzarak\.cache
> DEBUG: Running command: gui
> DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\notebook.zim
> DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Statistics\notebook.zim
> DEBUG: Opening dialog "Open Notebook - Zim"
> DEBUG: Wrote C:\Dokumente und Einstellungen\matzarak\.config\zim\notebooks.list
> DEBUG: Dialog response OK
> DEBUG: Wrote C:\Dokumente und Einstellungen\matzarak\.config\zim\notebooks.list
> DEBUG: Closed dialog "Open Notebook"
> DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\.config\zim\preferences.conf
> DEBUG: Gtk version is (2, 14, 7)
> DEBUG: Pygtk version is (2, 12, 1)
> DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\.config\zim\style.conf
> DEBUG: Loaded plugin calendar (<CalendarPlugin object at 0x113dcb0 (zim+plugins+PluginClass at 0x1839140)>)
> DEBUG: Loaded plugin printtobrowser (<PrintToBrowserPlugin object at 0x11429e0 (zim+plugins+PluginClass at 0x1839340)>)
> DEBUG: Loaded plugin tasklist (<TaskListPlugin object at 0x1143288 (zim+plugins+tasklist+TaskListPlugin at 0x1839550)>)
> DEBUG: Loaded plugin trayicon (<TrayIconPlugin object at 0x1153eb8 (zim+plugins+PluginClass at 0x1839790)>)
> ERROR: Failed to load plugin versioncontrol
> Traceback (most recent call last):
>  File "zim\__init__.pyo", line 377, in load_plugin
> AssertionError: Dependencies failed for plugin versioncontrol
> DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\.config\zim\customtools\to-tomorrow-usercreated.desktop
> DEBUG: Accelmap: C:\Dokumente und Einstellungen\matzarak\.config\zim\accelmap
> DEBUG: Opening notebook: file:///C:/Dokumente und Einstellungen/matzarak/Desktop/My Dropbox/zim/Notes
> DEBUG: Cache dir: C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\.zim
> DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\notebook.zim
> DEBUG: Index database file: C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\.zim\index.db
> DEBUG: Loading C:\Dokumente und Einstellungen\matzarak\Desktop\My Dropbox\zim\Notes\.zim\state.conf
> INFO: Starting background index update
> DEBU...

Read more...

Revision history for this message
smu (smu) wrote :

On Thu, Oct 21, 2010 at 06:32:55PM -0000, Jaap Karssenberg wrote:
> Could you check the content of C:\Dokumente und
> Einstellungen\matzarak\.config\zim\notebooks.list ?

of course:

[NotebookList]
Default=file:///C:/Dokumente und Einstellungen/matzarak/Desktop/My Dropbox/zim/Notes
file:///C:/Dokumente und Einstellungen/matzarak/Desktop/My Dropbox/zim/Notes
file:///C:/Dokumente und Einstellungen/matzarak/Desktop/My Dropbox/zim/Statistics

As far as I can tell it looks fine.

regards,
 stefan

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

On Fri, Oct 22, 2010 at 10:34 AM, smu <email address hidden> wrote:
> On Thu, Oct 21, 2010 at 06:32:55PM -0000, Jaap Karssenberg wrote:
>> Could you check the content of C:\Dokumente und
>> Einstellungen\matzarak\.config\zim\notebooks.list ?
>
> of course:
>
> [NotebookList]
> Default=file:///C:/Dokumente und Einstellungen/matzarak/Desktop/My Dropbox/zim/Notes
> file:///C:/Dokumente und Einstellungen/matzarak/Desktop/My Dropbox/zim/Notes
> file:///C:/Dokumente und Einstellungen/matzarak/Desktop/My Dropbox/zim/Statistics
>
> As far as I can tell it looks fine.

So with this notebook.list file does it open the default correctly
("Notes" in this case) ? Does the notebook.list file change correctly
when changing the default in the dialog?

Reason for asking is that the bug can be in two areas: either the
dialog does not update the files correctly or the dialog updates the
file correctly, but zim does not open the default correctly.

Since I can not reproduce it myself bit stabbing in the dark which
direction to search.

-- Jaap

Revision history for this message
smu (smu) wrote :

On Fri, Oct 22, 2010 at 09:48:24AM -0000, Jaap Karssenberg wrote:
> On Fri, Oct 22, 2010 at 10:34 AM, smu <email address hidden> wrote:
> > (...)
>
> So with this notebook.list file does it open the default correctly
> ("Notes" in this case) ? Does the notebook.list file change correctly
> when changing the default in the dialog?

When I start zim, the select notebook dialog appears and the field
"default notebook" is empty. Changing this to "Statistics" changes the
entry in notebook.list. However, with the next start, the select
notebook dialog is shown again and the default field is empty again.

>
> Reason for asking is that the bug can be in two areas: either the
> dialog does not update the files correctly or the dialog updates the
> file correctly, but zim does not open the default correctly.

So I guess, the latter ist the case.
Tell me, If you need any further information. Currently I am using 0.48
on windows, but I can try the repository version, if this is needed.

best regards,
 stefan

Revision history for this message
smu (smu) wrote :

On Fri, Oct 22, 2010 at 10:36:41AM -0000, smu wrote:
>
> When I start zim, the select notebook dialog appears and the field
> "default notebook" is empty. Changing this to "Statistics" changes the
> entry in notebook.list. However, with the next start, the select
> notebook dialog is shown again and the default field is empty again.

same behavior with win7 professional.

Revision history for this message
smu (smu) wrote :

On Fri, Oct 22, 2010 at 09:48:24AM -0000, Jaap Karssenberg wrote:
> So with this notebook.list file does it open the default correctly
> ("Notes" in this case) ? Does the notebook.list file change correctly
> when changing the default in the dialog?

I gave rev 317 a try and the behavior changes.

After the first start, zim asks again for the default notebook and
writes the selection in the notebook.list (and unfortunatly crashes
afterwards, but i this is not related and will be reported separatly).
The next time, it crashed directly (same reason), and in the debug
output

So I assume in the current revision, the bug no longer exists.

regards,
 stefa

Revision history for this message
smu (smu) wrote :

On Fri, Oct 22, 2010 at 01:26:55PM -0000, smu wrote:
> ...
> The next time, it crashed directly (same reason), and in the debug
> output

... is looks as if zim loads the correct (default) notebook.

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.