From ae87013a3a630f8e0212821367362b21c83146b9 Mon Sep 17 00:00:00 2001
From: shenmo <jifengshenmo@outlook.com>
Date: Mon, 24 Feb 2025 19:08:38 +0800
Subject: [PATCH] 12.6.2

---
 debian/changelog                                               | 3 ++-
 .../opt/ace-host-integration/ace-host-integration              | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b7aa302..b2feaa0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-amber-ce-bookworm (12.6.1) UNRELEASED; urgency=low
+amber-ce-bookworm (12.6.2) UNRELEASED; urgency=low
   * fix: Can't pass args via bwrap
   * fix: Auto upgrade service always pop up upgradable notifier
   * fix: /etc/apt/sources.list only request main repo
@@ -7,5 +7,6 @@ amber-ce-bookworm (12.6.1) UNRELEASED; urgency=low
   * adjust: remove dpkg from building depends
   * 把默认目录改为 amber-ce-bookworm
   * 支持使用Nvidia驱动加速
+  * 修复 Root 下无法获取IS_ACE_ENV=1
 
  -- shenmo <shenmo@spark-app.store>  Wed, 25 Sep 2024 23:15:49 +0800
diff --git a/src/opt/apps/amber-ce-bookworm/files/flamescion-container-tools/ace-host-integration/opt/ace-host-integration/ace-host-integration b/src/opt/apps/amber-ce-bookworm/files/flamescion-container-tools/ace-host-integration/opt/ace-host-integration/ace-host-integration
index e9168b8..2ddffaf 100755
--- a/src/opt/apps/amber-ce-bookworm/files/flamescion-container-tools/ace-host-integration/opt/ace-host-integration/ace-host-integration
+++ b/src/opt/apps/amber-ce-bookworm/files/flamescion-container-tools/ace-host-integration/opt/ace-host-integration/ace-host-integration
@@ -63,7 +63,7 @@ local file=$1
     chmod +x $file
 }
 
-if [  "${IS_ACE_ENV}" != "" ] || [[ -e /opt/ace-host-integration/ace-host-integration ]] && [[ -e /flamescion-container-tools ]];then
+if [  "${IS_ACE_ENV}" != "" ] ;then
 	if [ -e /opt/apps/ ];then
 	for app_dir in $(ls /opt/apps/); do
 		for file in /opt/apps/$app_dir/entries/applications/*.desktop;do