Skip to content

Commit

Permalink
Merge pull request #71 from mecha-org/revert-67-chore-alacritty
Browse files Browse the repository at this point in the history
Revert "chore(labwc): changes config file creation without sudo"
  • Loading branch information
akshayr-mecha authored Jan 4, 2025
2 parents 8db7361 + 92fdb0a commit e988edf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions debian/distro/build-debian.nu
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def main [machine: string, build_dir: string] {

configure_mecha_system_pref

set_config_dir_ownership

unmount_sys_proc_volumes

pack_root_fs
Expand Down
6 changes: 3 additions & 3 deletions debian/distro/modules/system-config.nu
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export def configure_labwc_auto_launch [] {
# Create the config directory if it doesn't exist
if not ($config_dir | path exists) {
log_debug $"Creating directory: ($config_dir)"
mkdir $config_dir
SUDO mkdir -p $config_dir
}

# Define the autostart content
Expand Down Expand Up @@ -255,7 +255,7 @@ mechanix-keyboard -s /etc/mechanix/shell/keyboard/settings.yml &"
# Configure autostart file
if not ($autostart_file | path exists) {
log_debug $"Creating autostart file: ($autostart_file)"
echo $autostart_content | tee $autostart_file
echo $autostart_content | SUDO tee $autostart_file

# Set proper permissions
SUDO chmod 644 $autostart_file
Expand All @@ -266,7 +266,7 @@ mechanix-keyboard -s /etc/mechanix/shell/keyboard/settings.yml &"
# Configure rc.xml file
if not ($rc_file | path exists) {
log_debug $"Creating rc.xml file: ($rc_file)"
echo $rc_content | tee $rc_file
echo $rc_content | SUDO tee $rc_file

# Set proper permissions
SUDO chmod 644 $rc_file
Expand Down

0 comments on commit e988edf

Please sign in to comment.