-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove env update script from startdde, and add in here Log:
- Loading branch information
Showing
5 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
if [ "$1" = "/usr/bin/dde-session" ]; then | ||
if [ -f "$HOME/.dde_env" ]; then | ||
. "$HOME/.dde_env" | ||
# Handling configuration migration issues | ||
if [ -n "$QT_SCALE_FACTOR" ]; then | ||
unset QT_SCALE_FACTOR | ||
unset QT_SCREEN_SCALE_FACTORS | ||
unset QT_AUTO_SCREEN_SCALE_FACTOR | ||
unset QT_FONT_DPI | ||
export STARTDDE_MIGRATE_SCALE_FACTOR=1 | ||
fi | ||
elif [ -f "$HOME/.pam_environment" -a -n "$QT_SCALE_FACTOR" ]; then | ||
# Handling configuration migration issues for earlier version | ||
unset QT_SCALE_FACTOR | ||
export STARTDDE_MIGRATE_SCALE_FACTOR=1 | ||
fi | ||
# control qt program infos level, set it only on uos | ||
if [ -f "/etc/os-version" ];then | ||
if [ ! `grep Community /etc/os-version` ];then | ||
export QT_LOGGING_RULES="*.debug=false" | ||
fi | ||
fi | ||
# set qt qpa platform type | ||
export QT_QPA_PLATFORM=xcb | ||
# control qml softwarecontext in loongson-drm | ||
lshw -c display | grep "driver=loongson-drm" | ||
if [ $? -eq 0 ];then | ||
export QMLSCENE_DEVICE=softwarecontext | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[ -f /etc/profile ] && . /etc/profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
case $XDG_SESSION_TYPE in | ||
x11) | ||
export QT_QPA_PLATFORM=xcb | ||
;; | ||
wayland) | ||
export QT_QPA_PLATFORM=wayland | ||
export QT_WAYLAND_SHELL_INTEGRATION="kwayland-shell;xdg-shell;wl-shell;ivi-shell;qt-shell;" | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export XDG_DATA_HOME="$HOME/.local/share" | ||
export XDG_CONFIG_HOME="$HOME/.config" | ||
export XDG_CACHE_HOME="$HOME/.cache" | ||
|
||
#export XDG_DESKTOP_DIR="$HOME/Desktop" | ||
#export XDG_DOCUMENTS_DIR="$HOME/Documents" | ||
#export XDG_DOWNLOAD_DIR="$HOME/Downloads" | ||
#export XDG_MUSIC_DIR="$HOME/Music" | ||
#export XDG_VIDEOS_DIR="$HOME/Videos" | ||
#export XDG_PICTURES_DIR="$HOME/Pictures" | ||
#export XDG_PUBLICSHARE_DIR="$HOME/Public" | ||
#export XDG_TEMPLATES_DIR="$HOME/Templates" |