优化快捷方式生成

This commit is contained in:
gfdgd xi 2023-06-28 21:24:45 +08:00
parent 779e303147
commit 86ef9c12da
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
chrootEnvPath=/opt/new-system-env
if [[ -f $HOME/.config/gx-env/nosandbox ]]; then
if [[ ! -f $HOME/.config/gx-env/nosandbox ]]; then
gx-env-run-root python3 /gx-env/gx-env-load-desktop-in-chroot
else
gx-env-run-root python3 /gx-env/gx-env-load-desktop-in-chroot 1
@ -8,4 +8,4 @@ fi
if [[ ! -d /usr/share/applications/gx-env ]]; then
pkexec mkdir /usr/share/applications/gx-env -p
fi
pkexec cp $chrootEnvPath/gx-env/desktop/* /usr/share/applications/gx-env -v
pkexec cp $chrootEnvPath/gx-env/desktop/* /usr/share/applications/gx-env -v

View File

@ -1,6 +1,6 @@
#!/bin/bash
chrootEnvPath=/opt/new-system-env
if [[ -f $HOME/.config/gx-env/nosandbox ]]; then
if [[ ! -f $HOME/.config/gx-env/nosandbox ]]; then
gx-env-run-root python3 /gx-env/gx-env-load-desktop-in-chroot
else
gx-env-run-root python3 /gx-env/gx-env-load-desktop-in-chroot 1
@ -8,4 +8,4 @@ fi
if [[ ! -d /usr/share/applications/gx-env ]]; then
pkexec mkdir /usr/share/applications/gx-env -p
fi
pkexec cp $chrootEnvPath/gx-env/desktop/* /usr/share/applications/gx-env -v
pkexec cp $chrootEnvPath/gx-env/desktop/* /usr/share/applications/gx-env -v