From 63b442084add2f2ac55d12d951dd5f03db2679b8 Mon Sep 17 00:00:00 2001 From: Dvlv Date: Fri, 14 Jun 2024 17:10:15 +0100 Subject: [PATCH] bump versions, fix issue with whitespace on app name --- Makefile | 2 +- io.github.dvlv.boxbuddyrs.metainfo.xml | 5 +++++ src/distrobox_handler.rs | 8 +++++--- src/main.rs | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8bc047f..5d872ad 100644 --- a/Makefile +++ b/Makefile @@ -40,4 +40,4 @@ update-translations: bash scripts/update-translations.sh f40: - GETTEXT_SYSTEM=true cargo build --release + GETTEXT_SYSTEM=true cargo build --release && target/release/boxbuddy-rs diff --git a/io.github.dvlv.boxbuddyrs.metainfo.xml b/io.github.dvlv.boxbuddyrs.metainfo.xml index 0e67057..217f45e 100644 --- a/io.github.dvlv.boxbuddyrs.metainfo.xml +++ b/io.github.dvlv.boxbuddyrs.metainfo.xml @@ -40,6 +40,11 @@ https://dvlv.github.io/BoxBuddyRS + + +

Fix issue launching apps with Run button

+
+

French translations

diff --git a/src/distrobox_handler.rs b/src/distrobox_handler.rs index 4090ecf..6122772 100644 --- a/src/distrobox_handler.rs +++ b/src/distrobox_handler.rs @@ -100,8 +100,6 @@ pub fn get_all_distroboxes() -> Vec { is_running, }); } - - //println!("line: {:?}", line); } my_boxes @@ -395,7 +393,11 @@ pub fn get_apps_in_box(box_name: &str) -> Vec { let app = DBoxApp { name: pieces[0].clone(), - exec_name: pieces[1].replace("%F", "").replace("%U", ""), + exec_name: pieces[1] + .replace("%F", "") + .replace("%U", "") + .trim() + .to_owned(), icon: pieces[2].clone(), desktop_file: desktop_file_name, is_on_host: host_apps.contains(&host_desktop_name), diff --git a/src/main.rs b/src/main.rs index 0f18a85..e904e98 100644 --- a/src/main.rs +++ b/src/main.rs @@ -870,7 +870,7 @@ fn show_about_popup(window: &ApplicationWindow) { let d = adw::AboutWindow::new(); d.set_transient_for(Some(window)); d.set_application_name("BoxBuddy"); - d.set_version("2.2.6"); + d.set_version("2.2.7"); d.set_developer_name("Dvlv"); d.set_license_type(gtk::License::MitX11); // TRANSLATORS: Description of the application