File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ pub ( crate ) static APP_NAME : & str = "Graphite" ;
2+ pub ( crate ) static APP_ID : & str = "rs.graphite.GraphiteEditor" ;
3+ pub ( crate ) static APP_DIRECTORY_NAME : & str = "graphite-editor" ;
Original file line number Diff line number Diff line change 11use std:: fs:: create_dir_all;
22use std:: path:: PathBuf ;
33
4- static APP_NAME : & str = "graphite-desktop" ;
4+ use crate :: consts :: APP_DIRECTORY_NAME ;
55
66pub ( crate ) fn ensure_dir_exists ( path : & PathBuf ) {
77 if !path. exists ( ) {
@@ -10,7 +10,7 @@ pub(crate) fn ensure_dir_exists(path: &PathBuf) {
1010}
1111
1212pub ( crate ) fn graphite_data_dir ( ) -> PathBuf {
13- let path = dirs:: data_dir ( ) . expect ( "Failed to get data directory" ) . join ( APP_NAME ) ;
13+ let path = dirs:: data_dir ( ) . expect ( "Failed to get data directory" ) . join ( APP_DIRECTORY_NAME ) ;
1414 ensure_dir_exists ( & path) ;
1515 path
1616}
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ use graphite_editor::messages::prelude::Message;
66use tracing_subscriber:: EnvFilter ;
77use winit:: event_loop:: EventLoop ;
88
9+ pub ( crate ) mod consts;
10+
911mod cef;
1012use cef:: { Setup , WindowSize } ;
1113
You can’t perform that action at this time.
0 commit comments