Menu

#316 path of first untitled buffer

none
closed-fixed
None
5
2017-06-12
2009-12-08
No

Error: C:\Program Files (x86)\jEdit\#Untitled-1#:Cannot save: java.io.FileNotFoundException: C:\Program Files (x86)\jEdit\#Untitled-1# (Access is denied)

This pops up when you open JEdit and type in the default unsaved file that JEdit creates whenever the auto save function is called. I believe the issue is that Program Files has write restrictions, unless running in administrator mode. You can change the default location for backups, but not for this file. Please see

http://community.jedit.org/?q=node/view/4050
and
http://superuser.com/questions/78723/need-help-save-error-jedit

Perhaps the default file could be opened from our home directory or something, instead of the jedit program location

Discussion

  • Alan Ezust

    Alan Ezust - 2009-12-08

    The location of the "default file" is the "working directory" of that program.
    Which can be set from the shortcut properties if you run it from a shortcut.

    I suppose if the installer creates a shortcut and sets the "start in directory:",
    it should be the user's home directory, rather than the jedit install dir. I don't know what the windows installer does exactly.

     
  • creativeHavoc

    creativeHavoc - 2009-12-15

    I don't remember if i used the windows installer or the java installer, either way it would be nice to have that at least as a setting in the main settings window.

    Perhaps it could also be solved by changing how the file is opened/written. Maybe there is a "proper" way to do this now on windows? Is it happening because it is running in the java virtual machine and that doesn't have write access?

     
  • Alan Ezust

    Alan Ezust - 2009-12-23

    What if you go into the global options - file system browser - default path -
    and set it to something else? Does that make your problem go away?

     
  • Alan Ezust

    Alan Ezust - 2009-12-29
    • summary: Default file location not writeable - windows vista/7 --> First untitled buffer should use FSB-general-Default Path
     
  • Alan Ezust

    Alan Ezust - 2009-12-29

    Actually, many of the options in that combo are not relevant.
    We would need a new separate option for this, "path of first untitled buffer" which the user can select, from same pane as where one selects "restore previously open files on startup".

    Demoting this to a minor bug.

     
  • Alan Ezust

    Alan Ezust - 2009-12-29
    • summary: First untitled buffer should use FSB-general-Default Path --> path of first untitled buffer
    • milestone: 101608 --> 101609
     
  • Alan Ezust

    Alan Ezust - 2009-12-29
    • milestone: 101609 -->
    • labels: 102668 -->
     
  • Anonymous

    Anonymous - 2009-12-29

    jEdit uses "user.dir" (and not "user.home") as the default location of the FSB, which is also the default location of untitled buffers. According to java documentation, "user.dir" is the user's current directory, which happens to be the jEdit install directory.
    I can change it to "user.home" instead of a new option. In any case, when saving an untitled buffer the user is requested to provide the location for saving (except the autosave).

     
  • Anonymous

    Anonymous - 2010-01-03

    Do you think it's worth an option of its own? Or should I just use "user.home" for this?

     
  • David Rickard

    David Rickard - 2010-03-11

    It would seem from experience rather than documentation that the user.dir is alternatively the path for the file opened on startup (windows...right-click option).

    I opened a file from explorer using the right-click option and am getting errors that the untitled buffer I subsequently opened can't be saved to that directory because it's a read-only network share.

    Could you not use the backup directory for the untitled autosaves to get around creating more options?

     
  • Alan Ezust

    Alan Ezust - 2017-06-12
    • status: open --> closed-fixed
    • assigned_to: Alan Ezust
    • Group: --> none
     
  • Alan Ezust

    Alan Ezust - 2017-06-12

    Fixed in the latest daily build. Now it will be user.home.

     

Log in to post a comment.