Skip to content

Commit

Permalink
Pass --no-markup to zenity
Browse files Browse the repository at this point in the history
zenity will replace any dialog text that contains the characters `<` or `>` with a generic error message, because it tries to interpret those characters as pango markup.

This patch should prevent that from happening.
  • Loading branch information
SludgePhD authored Jul 4, 2024
1 parent fa24088 commit 61d78f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/linux/zenity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl From<std::string::FromUtf8Error> for ZenityError {
pub type ZenityResult<T> = Result<T, ZenityError>;

fn command() -> Command {
Command::new("zenity")
Command::new("zenity").arg("--no-markup")
}

fn add_filters(command: &mut Command, filters: &[Filter]) {
Expand Down

0 comments on commit 61d78f6

Please sign in to comment.