mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-07-15 10:02:22 +08:00
run.sh适配GXDE OS(https://gitee.com/gfdgd-xi/deep-wine-runner/issues/IAW3W3)
This commit is contained in:
parent
df561d3d03
commit
ca88d5f62c
@ -204,6 +204,8 @@ Get_Dist_Name()
|
|||||||
DISTRO='Deepin'
|
DISTRO='Deepin'
|
||||||
elif grep -Eqi "UnionTech" /etc/issue || grep -Eq "UnionTech" /etc/*-release; then
|
elif grep -Eqi "UnionTech" /etc/issue || grep -Eq "UnionTech" /etc/*-release; then
|
||||||
DISTRO='UniontechOS'
|
DISTRO='UniontechOS'
|
||||||
|
elif grep -Eqi "GXDE" /etc/issue || grep -Eq "GXDE" /etc/*-release; then
|
||||||
|
DISTRO='GXDE'
|
||||||
elif grep -Eqi "UOS" /etc/issue || grep -Eq "UOS" /etc/*-release; then
|
elif grep -Eqi "UOS" /etc/issue || grep -Eq "UOS" /etc/*-release; then
|
||||||
DISTRO='UniontechOS'
|
DISTRO='UniontechOS'
|
||||||
else
|
else
|
||||||
@ -266,7 +268,7 @@ DISABLE_ATTACH_FILE_DIALOG=""
|
|||||||
##############<<<<<<<<<禁用文件选择工具开始
|
##############<<<<<<<<<禁用文件选择工具开始
|
||||||
Get_Dist_Name
|
Get_Dist_Name
|
||||||
#此功能实现参见开头函数段
|
#此功能实现参见开头函数段
|
||||||
if [ "$DISTRO" != "Deepin" ] && [ "$DISTRO" != "UniontechOS" ];then
|
if [ "$DISTRO" != "Deepin" ] && [ "$DISTRO" != "UniontechOS" ] && [ "$DISTRO" != "GXDE" ];then
|
||||||
DISABLE_ATTACH_FILE_DIALOG="1"
|
DISABLE_ATTACH_FILE_DIALOG="1"
|
||||||
echo "非deepin/UOS,默认关闭系统自带的文件选择工具,使用Wine的"
|
echo "非deepin/UOS,默认关闭系统自带的文件选择工具,使用Wine的"
|
||||||
echo "如果你想改变这个行为,请到/opt/apps/$DEB_PACKAGE_NAME/files/$0处修改"
|
echo "如果你想改变这个行为,请到/opt/apps/$DEB_PACKAGE_NAME/files/$0处修改"
|
||||||
|
@ -24,6 +24,8 @@ Get_Dist_Name()
|
|||||||
DISTRO='UniontechOS'
|
DISTRO='UniontechOS'
|
||||||
elif grep -Eqi "UOS" /etc/issue || grep -Eq "UOS" /etc/*-release; then
|
elif grep -Eqi "UOS" /etc/issue || grep -Eq "UOS" /etc/*-release; then
|
||||||
DISTRO='UniontechOS'
|
DISTRO='UniontechOS'
|
||||||
|
elif grep -Eqi "GXDE" /etc/issue || grep -Eq "GXDE" /etc/*-release; then
|
||||||
|
DISTRO='GXDE'
|
||||||
else
|
else
|
||||||
DISTRO='OtherOS'
|
DISTRO='OtherOS'
|
||||||
fi
|
fi
|
||||||
@ -70,7 +72,7 @@ DISABLE_ATTACH_FILE_DIALOG=""
|
|||||||
##############<<<<<<<<<禁用文件选择工具开始
|
##############<<<<<<<<<禁用文件选择工具开始
|
||||||
Get_Dist_Name
|
Get_Dist_Name
|
||||||
#此功能实现参见开头函数段
|
#此功能实现参见开头函数段
|
||||||
if [ "$DISTRO" != "Deepin" ] && [ "$DISTRO" != "UniontechOS" ];then
|
if [ "$DISTRO" != "Deepin" ] && [ "$DISTRO" != "UniontechOS" ] && [ "$DISTRO" != "GXDE" ];then
|
||||||
DISABLE_ATTACH_FILE_DIALOG="1"
|
DISABLE_ATTACH_FILE_DIALOG="1"
|
||||||
echo "非deepin/UOS,默认关闭系统自带的文件选择工具,使用Wine的"
|
echo "非deepin/UOS,默认关闭系统自带的文件选择工具,使用Wine的"
|
||||||
echo "如果你想改变这个行为,请到/opt/apps/$DEB_PACKAGE_NAME/files/$0处修改"
|
echo "如果你想改变这个行为,请到/opt/apps/$DEB_PACKAGE_NAME/files/$0处修改"
|
||||||
|
@ -48,6 +48,8 @@ Get_Dist_Name()
|
|||||||
DISTRO='Deepin'
|
DISTRO='Deepin'
|
||||||
elif grep -Eqi "UnionTech" /etc/issue || grep -Eq "UnionTech" /etc/*-release; then
|
elif grep -Eqi "UnionTech" /etc/issue || grep -Eq "UnionTech" /etc/*-release; then
|
||||||
DISTRO='UniontechOS'
|
DISTRO='UniontechOS'
|
||||||
|
elif grep -Eqi "GXDE" /etc/issue || grep -Eq "GXDE" /etc/*-release; then
|
||||||
|
DISTRO='GXDE'
|
||||||
elif grep -Eqi "UOS" /etc/issue || grep -Eq "UOS" /etc/*-release; then
|
elif grep -Eqi "UOS" /etc/issue || grep -Eq "UOS" /etc/*-release; then
|
||||||
DISTRO='UniontechOS'
|
DISTRO='UniontechOS'
|
||||||
else
|
else
|
||||||
@ -109,7 +111,7 @@ DISABLE_ATTACH_FILE_DIALOG=""
|
|||||||
##############<<<<<<<<<禁用文件选择工具开始
|
##############<<<<<<<<<禁用文件选择工具开始
|
||||||
Get_Dist_Name
|
Get_Dist_Name
|
||||||
#此功能实现参见开头函数段
|
#此功能实现参见开头函数段
|
||||||
if [ "$DISTRO" != "Deepin" ] && [ "$DISTRO" != "UniontechOS" ];then
|
if [ "$DISTRO" != "Deepin" ] && [ "$DISTRO" != "UniontechOS" ] && [ "$DISTRO" != "GXDE" ];then
|
||||||
DISABLE_ATTACH_FILE_DIALOG="1"
|
DISABLE_ATTACH_FILE_DIALOG="1"
|
||||||
echo "非deepin/UOS,默认关闭系统自带的文件选择工具,使用Wine的"
|
echo "非deepin/UOS,默认关闭系统自带的文件选择工具,使用Wine的"
|
||||||
echo "如果你想改变这个行为,请到/opt/apps/$DEB_PACKAGE_NAME/files/$0处修改"
|
echo "如果你想改变这个行为,请到/opt/apps/$DEB_PACKAGE_NAME/files/$0处修改"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user