fix: GNOME detection for customized version (#790)
Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
@@ -134,7 +134,7 @@ pub fn run_fish_plug(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
pub fn upgrade_gnome_extensions(ctx: &ExecutionContext) -> Result<()> {
|
pub fn upgrade_gnome_extensions(ctx: &ExecutionContext) -> Result<()> {
|
||||||
let gdbus = require("gdbus")?;
|
let gdbus = require("gdbus")?;
|
||||||
require_option(
|
require_option(
|
||||||
env::var("XDG_CURRENT_DESKTOP").ok().filter(|p| p == "GNOME"),
|
env::var("XDG_CURRENT_DESKTOP").ok().filter(|p| p.contains("GNOME")),
|
||||||
"Desktop doest not appear to be gnome".to_string(),
|
"Desktop doest not appear to be gnome".to_string(),
|
||||||
)?;
|
)?;
|
||||||
print_separator("Gnome Shell extensions");
|
print_separator("Gnome Shell extensions");
|
||||||
|
|||||||
Reference in New Issue
Block a user