Skip to content

Commit

Permalink
fix mate; v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyTurtleDev committed Dec 8, 2022
1 parent afd771a commit 8727cfa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ WallpaperBuilder::new()?.set_wallpapers(|screen| {
```


[__cargo_doc2readme_dependencies_info]: ggGkYW0BYXSEGyDwipHVMb5RGxgd3zutc1TvG3ARKV4UcQ1NGyM1aXabIPYbYXKEG6HCJXnbryuSG3ykvSgqH61mG9YHNoShLGtqG2pUs8cIiq2sYWSBg29tb3JlLXdhbGxwYXBlcnNlMC4yLjBvbW9yZV93YWxscGFwZXJz
[__cargo_doc2readme_dependencies_info]: ggGkYW0BYXSEGyDwipHVMb5RGxgd3zutc1TvG3ARKV4UcQ1NGyM1aXabIPYbYXKEG6HCJXnbryuSG3ykvSgqH61mG9YHNoShLGtqG2pUs8cIiq2sYWSBg29tb3JlLXdhbGxwYXBlcnNlMC4yLjFvbW9yZV93YWxscGFwZXJz
[__link0]: https://crates.io/crates/wallpaper
[__link1]: https://crates.io/crates/wall
[__link10]: https://docs.rs/more-wallpapers/0.2.0/more_wallpapers/?search=Screen::active
[__link11]: https://docs.rs/more-wallpapers/0.2.0/more_wallpapers/struct.WallpaperBuilder.html
[__link10]: https://docs.rs/more-wallpapers/0.2.1/more_wallpapers/?search=Screen::active
[__link11]: https://docs.rs/more-wallpapers/0.2.1/more_wallpapers/struct.WallpaperBuilder.html
[__link2]: https://github.com/LuckyTurtleDev/wallpaper.rs
[__link3]: https://crates.io/crates/wallpaper
[__link4]: https://github.com/stoeckmann/xwallpaper
[__link5]: https://gitlab.freedesktop.org/xorg/app/xrandr
[__link6]: https://crates.io/crates/wallpaper
[__link7]: https://docs.rs/more-wallpapers/0.2.0/more_wallpapers/enum.Environment.html
[__link8]: https://docs.rs/more-wallpapers/0.2.0/more_wallpapers/?search=set_wallpapers_from_vec
[__link9]: https://docs.rs/more-wallpapers/0.2.0/more_wallpapers/?search=set_random_wallpapers_from_vec
[__link7]: https://docs.rs/more-wallpapers/0.2.1/more_wallpapers/enum.Environment.html
[__link8]: https://docs.rs/more-wallpapers/0.2.1/more_wallpapers/?search=set_wallpapers_from_vec
[__link9]: https://docs.rs/more-wallpapers/0.2.1/more_wallpapers/?search=set_random_wallpapers_from_vec
2 changes: 1 addition & 1 deletion more-wallpapers/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "more-wallpapers"
version = "0.2.0"
version = "0.2.1"
workspace = ".."
edition = "2021"
rust-version = "1.62"
Expand Down
7 changes: 1 addition & 6 deletions more-wallpapers/src/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ fn get_environment() -> Result<Environment, WallpaperError> {
"x11" => Ok(Environment::X11),
#[cfg(feature = "fallback")]
"wayland" => match desktop.as_str() {
"budgie:gnome" => Ok(Environment::LinuxFallback), //same enviroment like gnome
"deepin" => Ok(Environment::LinuxFallback),
"gnome" => Ok(Environment::LinuxFallback),
"lxde" => Ok(Environment::LinuxFallback),
"matex" => Ok(Environment::LinuxFallback),
"xfce" => Ok(Environment::LinuxFallback),
"budgie:gnome" | "deepin" | "gnome" | "lxde" | "mate" | "xfce" => Ok(Environment::LinuxFallback),
_ => Err(WallpaperError::Unsuported(format!("{desktop} ({sessinon_type})"))),
},
_ => Err(WallpaperError::Unsuported(format!("{desktop} ({sessinon_type})"))),
Expand Down

0 comments on commit 8727cfa

Please sign in to comment.