From 9636c65ea7b835131676d757bef0cc1492311948 Mon Sep 17 00:00:00 2001 From: dhruveshb-mecha Date: Fri, 3 Jan 2025 04:16:47 -0500 Subject: [PATCH 1/4] fix: command trigger issue fix --- debian/distro/modules/system-config.nu | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/distro/modules/system-config.nu b/debian/distro/modules/system-config.nu index 0ec0bb9..e6530a2 100644 --- a/debian/distro/modules/system-config.nu +++ b/debian/distro/modules/system-config.nu @@ -280,8 +280,14 @@ mechanix-keyboard -s /etc/mechanix/shell/keyboard/settings.yml &" export def set_config_dir_ownership [] { let config_dir = $"($env.ROOTFS_DIR)/home/mecha/.config" log_debug $"Setting ownership of ($config_dir) to mecha:mecha" - SUDO chown -R mecha:mecha $config_dir + # Use chroot to execute gsettings command + alias CHROOT = sudo chroot $rootfs_dir + try { + CHROOT chown -R mecha:mecha $config_dir log_info "Ownership set successfully." + } catch { + log_error $"Failed to set ownership" + } } export def configure_mecha_system_pref [] { From a3bf93bc539d629f36652cb828597ab66629b7a8 Mon Sep 17 00:00:00 2001 From: dhruveshb-mecha Date: Fri, 3 Jan 2025 04:21:43 -0500 Subject: [PATCH 2/4] fix: command trigger issue fix --- debian/distro/modules/system-config.nu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/distro/modules/system-config.nu b/debian/distro/modules/system-config.nu index e6530a2..0bd28ca 100644 --- a/debian/distro/modules/system-config.nu +++ b/debian/distro/modules/system-config.nu @@ -280,6 +280,9 @@ mechanix-keyboard -s /etc/mechanix/shell/keyboard/settings.yml &" export def set_config_dir_ownership [] { let config_dir = $"($env.ROOTFS_DIR)/home/mecha/.config" log_debug $"Setting ownership of ($config_dir) to mecha:mecha" + + let rootfs_dir = $env.ROOTFS_DIR + # Use chroot to execute gsettings command alias CHROOT = sudo chroot $rootfs_dir try { From 9bf45ce76a3e7890d332b543999ab334bec4b063 Mon Sep 17 00:00:00 2001 From: dhruveshb-mecha Date: Fri, 3 Jan 2025 04:28:03 -0500 Subject: [PATCH 3/4] fix: package added --- debian/distro/conf-packages/target.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/distro/conf-packages/target.yml b/debian/distro/conf-packages/target.yml index cab7452..3dfcbfa 100644 --- a/debian/distro/conf-packages/target.yml +++ b/debian/distro/conf-packages/target.yml @@ -36,6 +36,7 @@ package_groups: - dosfstools - cpufrequtils - upower + - libglib2.0-0-dbg - name: network packages: - bluez From 360e1a5247343922787cdbe126e2012072ec0327 Mon Sep 17 00:00:00 2001 From: dhruveshb-mecha Date: Fri, 3 Jan 2025 04:54:01 -0500 Subject: [PATCH 4/4] fix: package added --- debian/distro/modules/system-config.nu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/distro/modules/system-config.nu b/debian/distro/modules/system-config.nu index 0bd28ca..16787d0 100644 --- a/debian/distro/modules/system-config.nu +++ b/debian/distro/modules/system-config.nu @@ -301,7 +301,12 @@ export def configure_mecha_system_pref [] { alias CHROOT = sudo chroot $rootfs_dir #log_debug "Enabling on-screen keyboard system-wide" - #CHROOT gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true + try { + CHROOT gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true + log_info "On-screen keyboard enabled system-wide." + } catch { + log_error "Failed to enable on-screen keyboard system-wide." + } log_debug "Removing unused desktop files" # Remove unwanted desktop files