FIX APP_ID

This commit is contained in:
Ward from fusion-voyager-3 2024-08-22 00:29:39 +03:00
parent ccf5327899
commit cb78296b0d

View File

@ -1,7 +1,5 @@
use crate::{ use crate::{
efi_error_page, eula_page, keyboard_page, language_page, config::APP_ID, efi_error_page, eula_page, keyboard_page, language_page, partitioning_page::{self, CrypttabEntry, FstabEntry}, timezone_page, welcome_page
partitioning_page::{self, CrypttabEntry, FstabEntry},
timezone_page, welcome_page,
}; };
use gtk::{gio, glib, prelude::*}; use gtk::{gio, glib, prelude::*};
use std::{cell::RefCell, path::Path, rc::Rc}; use std::{cell::RefCell, path::Path, rc::Rc};
@ -20,7 +18,7 @@ pub struct PikaKeymap {
} }
pub fn build_ui(app: &adw::Application) { pub fn build_ui(app: &adw::Application) {
glib::set_prgname(Some("application_name")); glib::set_prgname(Some(t!("application_name").to_string()));
glib::set_application_name(&t!("application_name")); glib::set_application_name(&t!("application_name"));
let carousel = adw::Carousel::builder() let carousel = adw::Carousel::builder()
@ -58,7 +56,7 @@ pub fn build_ui(app: &adw::Application) {
.default_height(500) .default_height(500)
.deletable(false) .deletable(false)
.content(&toolbarview) .content(&toolbarview)
.startup_id("pika-installer-gtk4") .startup_id(APP_ID)
.build(); .build();
match Path::new("/sys/firmware/efi/efivars").exists() { match Path::new("/sys/firmware/efi/efivars").exists() {