forked from linglongdev/org.deepin.runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile
More file actions
22 lines (20 loc) · 1022 Bytes
/
profile
File metadata and controls
22 lines (20 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# TODO 后面应该使用app prefix环境变量,现在玲珑还没添加这个环境变量
export QML_IMPORT_PATH=/opt/apps/$LINGLONG_APPID/files
# 读取当前base的架构
tripletList=$(cat /etc/linglong-triplet-list)
for triplet in $tripletList; do
export QT_QPA_PLATFORM_PLUGIN_PATH="/runtime/lib/$triplet/qt6/plugins/platforms"
export QML_IMPORT_PATH="/runtime/lib/$triplet/qt6/qml:$QML_IMPORT_PATH"
export QT_PLUGIN_PATH="/runtime/lib/$triplet/qt6/plugins"
break
done
# https://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path
export QML2_IMPORT_PATH=$QML_IMPORT_PATH
# 设置环境变量,方便在终端中使用qt工具
export PATH=$PATH:/runtime/lib/qt6/bin
export CMAKE_PREFIX_PATH=/usr:/runtime:$PREFIX
# webengine process path and resources path
export QTWEBENGINEPROCESS_PATH=/runtime/lib/qt6/libexec/QtWebEngineProcess
export QTWEBENGINE_RESOURCES_PATH=/runtime/share/qt6/resources
export QTWEBENGINE_LOCALES_PATH=/runtime/share/qt6/translations/qtwebengine_locales