File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1515 " --socket=fallback-x11" ,
1616 " --socket=wayland" ,
1717 " --device=dri" ,
18- " --share=network"
18+ " --share=network" ,
19+ " --filesystem=xdg-download/Geopard"
1920 ],
2021 "build-options" : {
2122 "append-path" : " /usr/lib/sdk/rust-stable/bin" ,
Original file line number Diff line number Diff line change 1515 " --socket=fallback-x11" ,
1616 " --socket=wayland" ,
1717 " --device=dri" ,
18- " --share=network"
18+ " --share=network" ,
19+ " --filesystem=xdg-download/Geopard"
1920 ],
2021 "build-options" : {
2122 "append-path" : " /usr/lib/sdk/rust-stable/bin" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,15 @@ use url::Url;
1010use crate :: gemini;
1111
1212pub static DOWNLOAD_PATH : Lazy < std:: path:: PathBuf > =
13- Lazy :: new ( || glib:: user_special_dir ( glib:: UserDirectory :: Downloads ) . unwrap ( ) ) ;
13+ Lazy :: new ( || {
14+ let mut download_path = glib:: user_special_dir ( glib:: UserDirectory :: Downloads )
15+ . expect ( "Can't access download directory" ) ;
16+ download_path. push ( "Geopard" ) ;
17+ if !download_path. exists ( ) {
18+ std:: fs:: create_dir ( & download_path) . expect ( "Can't create download folder" ) ;
19+ }
20+ download_path
21+ } ) ;
1422
1523pub static ABOUT_PAGE : & str = std:: include_str!( "../../README.gemini" ) ;
1624
You can’t perform that action at this time.
0 commit comments