This commit is contained in:
Valeria Fadeeva 2025-01-30 22:48:15 +05:00
parent d753bc5bef
commit 694998812b
1 changed files with 6 additions and 6 deletions

View File

@ -133,8 +133,8 @@ fn main() {
col_install_new_sys.set_margin(10); col_install_new_sys.set_margin(10);
col_install_new_sys.set_pad(10); col_install_new_sys.set_pad(10);
let _installation_start_here =
let _installation_start_here = Frame::default().with_label(&t!("label.installation_start_here")); Frame::default().with_label(&t!("label.installation_start_here"));
let _label_passwords = Frame::default().with_label(&t!("label.users_and_passwords")); let _label_passwords = Frame::default().with_label(&t!("label.users_and_passwords"));
@ -153,7 +153,7 @@ fn main() {
let _x: &str = match c.value() { let _x: &str = match c.value() {
0 => { 0 => {
let mut image_home_partition_shared = SvgImage::load( let mut image_home_partition_shared = SvgImage::load(
"assets/images/home-partition-shared.svg" "/usr/share/melawy-linux-welcome/assets/images/home-partition-shared.svg"
).unwrap(); ).unwrap();
image_home_partition_shared.scale(550, 200, true, true); image_home_partition_shared.scale(550, 200, true, true);
frame_show_partition_layout.set_image(Some(image_home_partition_shared)); frame_show_partition_layout.set_image(Some(image_home_partition_shared));
@ -165,7 +165,7 @@ fn main() {
} }
1 => { 1 => {
let mut image_home_partition_separated = SvgImage::load( let mut image_home_partition_separated = SvgImage::load(
"assets/images/home-partition-separated.svg" "/usr/share/melawy-linux-welcome/assets/images/home-partition-separated.svg"
).unwrap(); ).unwrap();
image_home_partition_separated.scale(550, 200, true, true); image_home_partition_separated.scale(550, 200, true, true);
frame_show_partition_layout.set_image(Some(image_home_partition_separated)); frame_show_partition_layout.set_image(Some(image_home_partition_separated));
@ -189,13 +189,13 @@ fn main() {
{ {
if _x == "separated" { if _x == "separated" {
let cmd = let cmd =
"/usr/lib/kf6/kdesu -t dbus-launch /data/github/active/Melawy/Melawy-Dev/MELAWY/Installer/melawy-linux-welcome/scripts/run_installer_with_partition_separated_layout.sh"; "/usr/lib/kf6/kdesu -t dbus-launch /usr/share/melawy-linux-welcome/scripts/run_installer_with_partition_separated_layout.sh";
let _ = run_cmd(cmd, None); let _ = run_cmd(cmd, None);
} }
if _x == "shared" { if _x == "shared" {
let cmd = let cmd =
"/usr/lib/kf6/kdesu -t dbus-launch /data/github/active/Melawy/Melawy-Dev/MELAWY/Installer/melawy-linux-welcome/scripts/run_installer_with_partition_shared_layout.sh"; "/usr/lib/kf6/kdesu -t dbus-launch /usr/share/melawy-linux-welcome/scripts/run_installer_with_partition_shared_layout.sh";
let _ = run_cmd(cmd, None); let _ = run_cmd(cmd, None);
} }
} }