Skip to content

Commit 8e1ad1b

Browse files
authored
Update commands.rs
1 parent 59d0c66 commit 8e1ad1b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

hacker/src/commands.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use crate::UnpackCommands;
44
use crate::SystemCommands;
55
use crate::RunCommands;
66
use std::process::Command;
7-
87
pub fn handle_unpack(unpack_command: UnpackCommands) {
98
match unpack_command {
109
UnpackCommands::AddOns => {
@@ -41,7 +40,7 @@ pub fn handle_unpack(unpack_command: UnpackCommands) {
4140
UnpackCommands::Select => {
4241
println!("{}", "========== Interactive Package Selection ==========".yellow().bold().on_black());
4342
let home = std::env::var("HOME").unwrap_or_default();
44-
let select_bin = format!("{}/.hackeros/hacker-select", home);
43+
let select_bin = format!("{}/.hackeros/hacker/hacker-select", home);
4544
let select_output = Command::new(&select_bin).arg("-mode").arg("unpack").output().expect("Failed to run hacker-select");
4645
if !select_output.status.success() {
4746
println!("{}", "Error running hacker-select".red().bold().on_black());
@@ -138,7 +137,6 @@ pub fn handle_unpack(unpack_command: UnpackCommands) {
138137
}
139138
}
140139
}
141-
142140
pub fn handle_system(system_command: SystemCommands) {
143141
match system_command {
144142
SystemCommands::Logs => {
@@ -147,7 +145,6 @@ pub fn handle_system(system_command: SystemCommands) {
147145
}
148146
}
149147
}
150-
151148
pub fn handle_run(cmd: RunCommands) {
152149
match cmd {
153150
RunCommands::UpdateSystem => run_command_with_spinner("sudo", vec!["/usr/share/HackerOS/Scripts/Bin/update-system.sh"], "Updating system"),
@@ -156,5 +153,6 @@ pub fn handle_run(cmd: RunCommands) {
156153
RunCommands::HackerLauncher => run_command_with_spinner("bash", vec!["/usr/share/HackerOS/Scripts/HackerOS-Apps/Hacker_Launcher"], "Launching HackerOS Launcher"),
157154
RunCommands::HackerosGameMode => run_command_with_spinner("", vec!["/usr/share/HackerOS/Scripts/HackerOS-Apps/HackerOS-Game-Mode.AppImage"], "Running HackerOS Game Mode"),
158155
RunCommands::UpdateHackeros => run_command_with_spinner("sudo", vec!["/usr/share/HackerOS/Scripts/Bin/update-hackeros.sh"], "Updating HackerOS"),
156+
RunCommands::UpdateWallpapers => run_command_with_spinner("sudo", vec!["/usr/share/HackerOS/Scripts/Bin/update-wallpapers.sh"], "Updating wallpapers"),
159157
}
160158
}

0 commit comments

Comments
 (0)