Open 2mnml opened 7 months ago
I would be interested in implementing this, however @lighttigerXIV has mentioned about support and maintenance being difficult to sustain for the main application.
Heyo @2mnml :wave:, so I've managed to get the CLI up and running. Just working in the GUI now, I can push the CLI commits to my fork if you wanna try it out.
@NamesCode That would be great!
Heyo @2mnml, I've pushed to my repor the commits, You'd have to compile it yourself currently though, so i've provided a quick script:
git clone https://github.com/NamesCode/catppuccinifier.git \
cd catppuccinifier/src/catppuccinifier-cli \
cargo install
Any issues feel free to contact me :)
Seems to be working great, you rock! @NamesCode
Having some issues with it @NamesCode
@2mnml in main.rs change update
let temp_path = match env::consts::OS {
"linux" => "/tmp/catppuccinifier/".to_string(),
"windows" => "C:\\Windows\\TEMP\\catppuccinifier\\".to_string(),
_ => "".to_string(),
};
(line 90)
you need to specify a dir for macos. For example
let temp_path = match env::consts::OS {
"linux" => "/tmp/catppuccinifier/".to_string(),
"windows" => "C:\\Windows\\TEMP\\catppuccinifier\\".to_string(),
"macos" => "/tmp/catppuccinifier".to_string(),
_ => "".to_string(),
};
Same Issue keeps happening @omelette-watin
@NotAriRay what is the panic error that you got ?
@omelette-watin Sane error as in this message
https://github.com/lighttigerXIV/catppuccinifier/issues/32#issuecomment-1954459195
@NotAriRay try to check if /tmp dir exists. i think its the reason for your trouble
in line 97 the code calls create_dir instead of create_dir_all. You can either change this line or mkdir /tmp
@NotAriRay try to check if /tmp dir exists. i think its the reason for your trouble
in line 97 the code calls create_dir instead of create_dir_all. You can either change this line or mkdir /tmp
/tmp
doesn't exist on mac by default? 🤔
I dont know tbh 😅 but try to see if this fixes your problem @NotAriRay
@2mnml in main.rs change update
let temp_path = match env::consts::OS { "linux" => "/tmp/catppuccinifier/".to_string(), "windows" => "C:\\Windows\\TEMP\\catppuccinifier\\".to_string(), _ => "".to_string(), };
(line 90)
you need to specify a dir for macos. For example
let temp_path = match env::consts::OS { "linux" => "/tmp/catppuccinifier/".to_string(), "windows" => "C:\\Windows\\TEMP\\catppuccinifier\\".to_string(), "macos" => "/tmp/catppuccinifier".to_string(), _ => "".to_string(), };
The only issue with this is that
@NotAriRay try to check if /tmp dir exists. i think its the reason for your trouble
in line 97 the code calls create_dir instead of create_dir_all. You can either change this line or mkdir /tmp
/tmp
exists since macOS is a posix system. The reason I believe this is happening is because the catpuccinifier
subfolder doesn't exist in /tmp
.
I'll work on my PR for this at some point in the future that should resolve this. For now just run:
mkdir "/tmp/catppuccinifier/"
Was wondering if this will be implemented into Mac OS, at least in the cli?
Thanks!