zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #04682
Re: start page for zim
-
From:
Joseph Reagle <joseph.2011@xxxxxxxxxx>
-
Date:
Tue, 1 May 2018 16:19:09 -0400
-
Autocrypt:
addr=joseph.2011@xxxxxxxxxx; prefer-encrypt=mutual; keydata= xsFNBFbZ014BEADD0VTXKp+8wRb28EQbMfmbscTZTkI5gZrzq6WEwluvD1tu/KLIvUNs35mq VOjnYYmqeTMqSmzksO/LixKvayfkitL9+h9YdFgBaWiGuSuPQevQICS7qZVb6+oWClzAXbs2 cztD83I3CUYTHQw5YU2+ZA3CfUb0j2SF0dS6K2uQfN4GlwRafZLZwYAh5wD3koqnp3KwQCvG kouVwlWOWQS5PEZBCicRMqTZSv8KnLh8lENCL/rpzjwYwJxv5kg1xJZvDiHY/S/ikavzJJ1w U2dxkGE6fUs12vyC0PcgMtr5949Vs7jr9UHhNAZ8bXAG3MKln4yXGOrhv2FZ9I9dHRsj1N5W 0aIZGQNG+JxqPSGyI7yPE/Sa0dQqM8hmcLyFTKNDMpqJcOj4b9ljZBHoqSRs7anZ9pWHjkD2 FKV4Mhf/NWk4GLipGoGGByYGlwHVS9J+F8EKwxIuBUzH6JBjJPZglTdHth6rax7kDGuPruia y4c1jacX2SswhK66CAMkSjWTwShh7mKDGFA9/ABbASQ1VzKifdV4KfAH8ZKjjauvFbaC4diW TsZz10eDjS0qY0VWEz7Lek4zF6AVlZNSeota9UTPmJfKHMfGxeBTdZ9uiwpHDDKSsebZIm+H fWDj5as0BMQF17/9GKPoszUJZ4fEEbW7vnqYh4JEXTimOd5xDQARAQABzSFKb3NlcGggUmVh Z2xlIDxqb3NlcGhAcmVhZ2xlLm9yZz7CwZQEEwEKAD4CGwMFCwkIBwMFFQoJCAsFFgIDAQAC HgECF4AWIQRfUjzQ0Od+yoKnOxmB0w18CvmevwUCWeZ8xQUJBs8QZwAKCRCB0w18Cvmev9w1 D/oCMoy7s69RkpN0+1GbJe2/JegwhuOjfr+78uO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im <zim-wiki@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<425d6d15-1597-61c4-ed91-916228b7ebc5@reagle.org>
-
Openpgp:
preference=signencrypt
-
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
This problem is deeper than I expected and has to do with the state/cache: on_close_page ... self.save_uistate(). Here is my `notebook.zim`:
```
[Notebook]
disable_trash=False
document_root=
endofline=unix
home=Home
icon=
interwiki=jp
name=plan
profile=
shared=False
```
Whether shared is True or False, it keeps state in `$HOME/.cache` directory:
```
DEBUG: Running from a source dir: /Users/reagle/bin/zim-0.68
DEBUG: Set XDG_DATA_HOME to /Users/reagle/.local/share
DEBUG: Set XDG_DATA_DIRS to [<Dir: /usr/share>, <Dir: /usr/local/share>]
DEBUG: Set XDG_CONFIG_HOME to /Users/reagle/.config
DEBUG: Set XDG_CONFIG_DIRS to [<Dir: /etc/xdg>]
DEBUG: Set XDG_CACHE_HOME to /Users/reagle/.cache
```
There, I deleted `notebook-Users_reagle_joseph_plan_zim/`. And hurray, I now start on the home page, but still the path state is never retained. After I browse a bunch of pages and quit, the state is:
```
[History]
list=[["Home",0,null]]
recent=[["Home",0,null]]
current=0
```
Also (and I suspect this is the crux) as I browse the pages I get these errors:
```
DEBUG: BackgroundCheck finished
Traceback (most recent call last):
File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2411, in on_close_page
self.save_uistate()
File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2363, in save_uistate
self.uistate['windowpos'] = self.get_position()
File "/Users/reagle/bin/zim-0.68/zim/config/dicts.py", line 549, in __setitem__
raise KeyError('Config key "%s" has not been defined' % k)
KeyError: 'Config key "windowpos" has not been defined'
INFO: Open page: Misc:Housing (Misc:Housing)
DEBUG: BackgroundCheck started
DEBUG: BackgroundCheck finished
Traceback (most recent call last):
File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2411, in on_close_page
self.save_uistate()
File "/Users/reagle/bin/zim-0.68/zim/gui/__init__.py", line 2363, in save_uistate
self.uistate['windowpos'] = self.get_position()
File "/Users/reagle/bin/zim-0.68/zim/config/dicts.py", line 549, in __setitem__
raise KeyError('Config key "%s" has not been defined' % k)
KeyError: 'Config key "windowpos" has not been defined'
INFO: Open page: Misc:Finance (Misc:Finance)
```
Follow ups
References