If $(HOME)/.leo/.leoRecentFiles.txt does not exist, the only recent file ever is the current file

Bug #971171 reported by SegundoBob
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
leo-editor
Invalid
Medium
Edward K. Ream

Bug Description

This is a problem for new installations, but it probably is not noticed by long-time users of Leo-Editor because for them $(HOME)/.leo/.leoRecentFiles.txt does exist. I noticed the problem because I installed a new operating system and hence made a new home directory.

Beginning with some, probably recent, version, Leo-Editor stopped creating $(HOME)/.leo/.leoRecentFiles.txt. Hence, if the recent files file does not exist, it is never created and Leo-Editor always presents a recent files menu containing only the current file.

Work Around:
With Leo-Editor not running, create a zero length file $(HOME)/.leo/.leoRecentFiles.txt.

This is tricky under Windows because File Explorer does NOT let you enter a file name that begins with a period. You can get around it by using the command line and standard-out redirection:

echo >.leoRecentFiles.txt

Test System:
Leo-Editor Rev 5220

Multiple OSes:
openSUSE 12.1 with XFCE desktop
Ubuntu 11.10 with Fluxbox window manager
Windows XP

Leo Log Window
Leo 4.10 final, build 5220, 2012-03-30 12:49:20
Python 2.7.2, qt version 4.7.4
linux2
setting leoID from os.getenv('USER'): 'bob02'
load dir: /home/ldi/bzr/LeoLatest/leo/core
global config dir: /home/ldi/bzr/LeoLatest/leo/config
home dir: /home/bob02
reading settings in /home/ldi/bzr/LeoLatest/leo/config/leoSettings.leo
reading settings in /home/bob02/.leo/myLeoSettings.leo
reading settings in /media/datw1/BobH/1/Leo/Leo.leo
reading: /media/datw1/BobH/1/Leo/Leo.leo

Revision history for this message
Edward K. Ream (edreamleo) wrote : Re: [Bug 971171] [NEW] If $(HOME)/.leo/.leoRecentFiles.txt does not exist, the only recent file ever is the current file

On Sun, Apr 1, 2012 at 6:55 PM, SegundoBob <email address hidden> wrote:
> Public bug reported:
>
> This is a problem for new installations, but it probably is not noticed by long-time users of Leo-Editor...

> Beginning with some, probably recent, version, Leo-Editor stopped creating $(HOME)/.leo/.leoRecentFiles.txt.  Hence, if the recent files file does not exist, it is never created and Leo-Editor always presents a recent files menu containing only the current file.

Thanks for this detailed and helpful report. I'll fix it soon, probably today.

Edward

Changed in leo-editor:
importance: Undecided → Low
assignee: nobody → Edward K. Ream (edreamleo)
milestone: none → 4.10.1-b1
Changed in leo-editor:
status: New → Confirmed
importance: Low → Medium
Revision history for this message
Edward K. Ream (edreamleo) wrote :

It works for me. That is, Leo writes ~/.leo/leoRecentFiles.txt if it doesn't exist. It's possible that without that file some recent files are lost, but that's a nit.

Changed in leo-editor:
status: Confirmed → Invalid
Revision history for this message
SegundoBob (bhossley) wrote :

Rev 6053 running under Xubuntu 12.04. This bug has been fixed.
Rev 6051 running under Windows XP. This bug has been fixed.

This bug was probably fixed long ago. I did not test for it between the time I reported it and today.

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.