Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember Last Directory on Windows #57

Open
Malkierian opened this issue Nov 1, 2023 · 2 comments
Open

Remember Last Directory on Windows #57

Malkierian opened this issue Nov 1, 2023 · 2 comments

Comments

@Malkierian
Copy link

I saw #47, but saw that it was only for non-Windows use. Is there a particular reason why there isn't an option for it for Windows?

@Malkierian
Copy link
Author

To be more specific, I was wondering why there doesn't seem to be an option to set currentPath on Windows from an externally remembered setting, to allow for remembering across program restarts.

@gallickgunner
Copy link
Owner

gallickgunner commented Nov 3, 2023

To be more specific, I was wondering why there doesn't seem to be an option to set currentPath on Windows from an externally remembered setting, to allow for remembering across program restarts.

No you can do it for any OS. If you want to open the browser from the last opened directory during a single instance of the program then it's pretty easy to do and I mentioned the answer in #47.

If you want to always open the browser in a specific directory and make it work across program restarts, you just have to pass an extra parameter (the path) to my Filebrowser constructor and then pass that path to this function. Then set current_path to the new path you passed. It's pretty basic coding.

If you or anybody can make a PR, I can accept it or you can just modify it for your own use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants