Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions misc/Xsession.d/00deepin-dde-env
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

if [ "$1" = "/usr/bin/startdde" ]; then
if [ -f "$HOME/.dde_env" ]; then
. "$HOME/.dde_env"
Expand Down Expand Up @@ -27,4 +29,16 @@ if [ "$1" = "/usr/bin/startdde" ]; then
if [ $? -eq 0 ];then
export QMLSCENE_DEVICE=softwarecontext
fi

# https://man7.org/linux/man-pages/man7/systemd.environment-generator.7.html
# set the default value
XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share}"

if [[ -d $HOME/.local/share/icons/ ]];
then
export XDG_DATA_DIRS="$HOME/.local/share/icons/:${XDG_DATA_DIRS}"
fi
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
fi
4 changes: 0 additions & 4 deletions misc/profile.d/deepin-xdg-dir.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
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"
Expand Down