Skip to content

Commit

Permalink
Merge pull request #67 from akshayr-mecha/chore-alacritty
Browse files Browse the repository at this point in the history
chore(labwc): changes config file creation without sudo
  • Loading branch information
akshayr-mecha authored Jan 3, 2025
2 parents 18527d4 + 561f82e commit 1d16eb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions debian/distro/build-debian.nu
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ 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)"
SUDO mkdir -p $config_dir
mkdir $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 | SUDO tee $autostart_file
echo $autostart_content | 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 | SUDO tee $rc_file
echo $rc_content | tee $rc_file

# Set proper permissions
SUDO chmod 644 $rc_file
Expand Down

0 comments on commit 1d16eb2

Please sign in to comment.