Skip to content

Commit

Permalink
fix(macos): update specific functions to only run on linux and macos (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Nov 17, 2023
1 parent 196c87f commit c7f6c64
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ fn main() -> Result<(), Report> {
if args.dry_run == Some(false) {
Template::generate(&schemes, &config, &args, &source_color, &default_scheme)?;

if !cfg!(any(target_os = "macos", target_os = "windows")) {
if config.config.reload_apps == Some(true) {
reload_apps_linux(&args, &config)?;
}
#[cfg(any(target_os = "linux", target_os = "netbsd"))]
if config.config.reload_apps == Some(true) {
reload_apps_linux(&args, &config)?;
}

if config.config.set_wallpaper == Some(true) {
set_wallaper(&config, &args)?;
}
#[cfg(any(target_os = "linux", target_os = "netbsd"))]
if config.config.set_wallpaper == Some(true) {
set_wallaper(&config, &args)?;
}

run_after(&config)?;
Expand Down

0 comments on commit c7f6c64

Please sign in to comment.