Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Run GNOME update only when using GNOME
Browse files Browse the repository at this point in the history
  • Loading branch information
r-darwish committed Oct 28, 2021
1 parent 48b7390 commit 850dbb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/steps/os/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::execution_context::ExecutionContext;
use crate::executor::CommandExt;
use crate::executor::{Executor, ExecutorExitStatus, RunType};
use crate::terminal::{print_separator, print_warning};
use crate::utils::{require, PathExt};
use crate::utils::{require, require_option, PathExt};
use anyhow::Result;
use directories::BaseDirs;
use log::debug;
Expand Down Expand Up @@ -133,6 +133,10 @@ pub fn run_fish_plug(ctx: &ExecutionContext) -> Result<()> {

pub fn upgrade_gnome_extensions(ctx: &ExecutionContext) -> Result<()> {
let gdbus = require("gdbus")?;
require_option(
env::var("XDG_CURRENT_DESKTOP").ok().filter(|p| p == "GNOME"),
"Desktop doest not appear to be gnome".to_string(),
)?;
print_separator("Gnome Shell extensions");

ctx.run_type()
Expand Down

0 comments on commit 850dbb4

Please sign in to comment.