Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyTurtleDev committed Feb 19, 2024
1 parent 417bca4 commit eef0c2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion more-wallpapers/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub enum CommandError {
CommandIO(&'static str, std::io::Error),

#[cfg(target_os = "linux")]
#[error("{command} exit with code {exit_code:?}: {stderr:?}")]
#[error("{command:?} exit with code {exit_code:?}:\n{}", String::from_utf8_lossy(.stderr))]
CommandStatus {
command: &'static str,
exit_code: Option<i32>,
Expand Down
6 changes: 3 additions & 3 deletions more-wallpapers/src/linux/xfce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub(crate) fn get_screens() -> Result<Vec<Screen>, WallpaperError> {
let first = split.next();
let second = split.next();
let third = split.next();
let fourth = split.next();
let fourth = split.next();
if split.next().is_some() {
//to long -> wrong key
continue;
Expand All @@ -49,7 +49,7 @@ pub(crate) fn get_screens() -> Result<Vec<Screen>, WallpaperError> {
} else {
(format!("{}/{}", first, second), third, false)
};
if !(key_type == "last_image" || key_type == "image_style") {
if !(key_type == "last-image" || key_type == "image-style") {
// wrong key
continue;
}
Expand All @@ -60,7 +60,7 @@ pub(crate) fn get_screens() -> Result<Vec<Screen>, WallpaperError> {
mode: None,
active,
});
if key_type == "last_image" {
if key_type == "last-image" {
screen.wallpaper = Some(value.into());
} else {
let mode = match value.as_str() {
Expand Down

0 comments on commit eef0c2d

Please sign in to comment.