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

downloads folder not showing #32

Closed
vogtpet opened this issue Apr 13, 2021 · 2 comments
Closed

downloads folder not showing #32

vogtpet opened this issue Apr 13, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@vogtpet
Copy link
Contributor

vogtpet commented Apr 13, 2021

In the GWB-APP module interface and after having clicked on the button: DOWNLOAD TEST DATASET: the two images are downloaded correctly in ~/downloads/. But in the next step, when clicking on the button SEARCH FILE, the directory "downloads" is not listed (also after clicking the reload button), so the example input images can not be selected this way.
Screenshot 2021-04-13 at 11 31 15

@12rambau
Copy link
Collaborator

12rambau commented Apr 13, 2021

I was thinking the downloads folder was a default folder as tmp.
Maybe I was wrong and I should create it at start

If you go to the file manager, you have no trace of a downloads folder ?

If it exists, try to click on the refresh btn next to the TextField it will refresh the folder list

@vogtpet
Copy link
Contributor Author

vogtpet commented Apr 13, 2021

I have/had no "downloads" folder in my $HOME. Some Linux distros have a "Download" folder by default defined in /etc/skel but SEPAL has nothing defined in /etc/skel. Two situations:
a) the user already has a folder $HOME/downloads: if you click on the DOWNLOAD TEST DATASET button, the action will work as expected
b) the user does not have a folder $HOME/downloads: if you click on the DOWNLOAD TEST DATASET button, then this action will create a file named "downloads" but not a folder...

The fix would be that clicking on the DOWNLOAD TEST DATASET button should always execute: mkdir -p $HOME/downloads; cp -f /opt/GWB/input/*.tif $HOME/downloads/

and after that the SEARCH FILE button will show the folder "downloads", good.

@12rambau 12rambau self-assigned this Apr 13, 2021
@12rambau 12rambau added the bug Something isn't working label Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants