Menu

#292 Remember last accessed directories between sessions

v3.x
open
nobody
None
User Interface
2017-07-10
2017-05-14
No

If I open a game, snapshot, etc., Vice opens a file chooser dialog in my home directory. I navigate to my C64 directory, select and load a file. If I load e.g. another game, the file chooser opens in the directory of the most recently loaded file. So far so good.

However, if I now restart Vice, the file chooser again opens in my home directory, and I have to -- again -- navigate to the directory where my C64 files are. Since I guess most people will have a dedicated directory for their C64 library, I believe the feature of remembering the last (or a few recent) directories would not go amiss.

Discussion

  • compyx

    compyx - 2017-05-15

    What port are you talking about? Seeing your previous bug report I assume Unix (you mention vicerc).

    I'll have a look at implementing this, first for SDL, the port we're currently concentrating on. And maybe later for other ports, though I think Win32 already uses the last dir used.

     
  • David Nemeskey

    David Nemeskey - 2017-05-16

    Ah yes, I forgot about that. I use gnomeui on Linux Mint, but it is true for the default UI as well. Gnome does have a Recently used "directory" in the file chooser, but that contains only the files, not the directories. Of course, I could select one of the (say) d64 files from Recently used, open it, and then do Smart-attach again, because now the file chooser will open in the directory of that file, but that's a lot of clicking.

     
  • compyx

    compyx - 2017-07-07

    I'm working on/planning some sort of 'session' support. Thing is, this will require updating the resource_int_t and resource_str_t types with an extra field. And since we have over 800 resources, that will cause a shitload of missing-initializer warnings.

    I could use the resource_event_relevant_t event_relevant field, renaming it to resource_flags and using an enum of { 0x000 = SAVE_TO_VICERC, 0x100 = SAVE_TO_SESSIONRC. 0x200 = DONT_SAVE } OR'ed with the resource_event_relevant_t enum values.

    That way I avoid having to update 800+ resource initializers, not to mention tracking down the 'dynamically' generated resources.

    I know using bit-masking magic is a bit of a hack, but would at least avoid hundreds of warnings, which I won't always be able to fix, seeing how many ports we have.

     
  • gpz

    gpz - 2017-07-10

    Ticket moved from /p/vice-emu/bugs/907/

    Can't be converted:

    • _milestone: v3.x
    • _port:
     

Log in to post a comment.

MongoDB Logo MongoDB