Changeset View
Changeset View
Standalone View
Standalone View
startkde/startplasmacompositor.cmake
Show All 33 Lines | |||||
34 | 34 | | |||
35 | # export LC_* variables set by kcmshell5 formats into environment | 35 | # export LC_* variables set by kcmshell5 formats into environment | ||
36 | # so it can be picked up by QLocale and friends. | 36 | # so it can be picked up by QLocale and friends. | ||
37 | exportformatssettings=$configDir/plasma-locale-settings.sh | 37 | exportformatssettings=$configDir/plasma-locale-settings.sh | ||
38 | test -f $exportformatssettings && { | 38 | test -f $exportformatssettings && { | ||
39 | . $exportformatssettings | 39 | . $exportformatssettings | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | # Make sure the Oxygen font is installed | | |||
43 | # This is necessary for setups where CMAKE_INSTALL_PREFIX | | |||
44 | # is not in /usr. fontconfig looks in /usr, ~/.fonts and | | |||
45 | # $XDG_DATA_HOME for fonts. In this case, we symlink the | | |||
46 | # Oxygen font under ${XDG_DATA_HOME} and make it known to | | |||
47 | # fontconfig | | |||
48 | | ||||
49 | usr_share="/usr/share" | | |||
50 | install_share="@KDE_INSTALL_FULL_DATADIR@" | | |||
51 | | ||||
52 | if [ ! $install_share = $usr_share ]; then | | |||
53 | | ||||
54 | if [ ${XDG_DATA_HOME} ]; then | | |||
55 | fontsDir="${XDG_DATA_HOME}/fonts" | | |||
56 | else | | |||
57 | fontsDir="${HOME}/.fonts" | | |||
58 | fi | | |||
59 | | ||||
60 | test -d $fontsDir || { | | |||
61 | mkdir -p $fontsDir | | |||
62 | } | | |||
63 | | ||||
64 | oxygenDir=$fontsDir/truetype/oxygen | | |||
65 | prefixDir="@KDE_INSTALL_FULL_DATADIR@/fonts/truetype/oxygen" | | |||
66 | | ||||
67 | # if the oxygen dir doesn't exist, create a symlink to be sure that the | | |||
68 | # Oxygen font is available to the user | | |||
69 | test -d $oxygenDir || test -d $prefixDir && { | | |||
70 | test -h $oxygenDir || ln -s $prefixDir $oxygenDir && fc-cache $oxygenDir | | |||
71 | } | | |||
72 | fi | | |||
73 | | ||||
74 | kstartupconfig5 | 42 | kstartupconfig5 | ||
75 | returncode=$? | 43 | returncode=$? | ||
76 | if test $returncode -ne 0; then | 44 | if test $returncode -ne 0; then | ||
77 | exit 1 | 45 | exit 1 | ||
78 | fi | 46 | fi | ||
79 | [ -r $configDir/startupconfig ] && . $configDir/startupconfig | 47 | [ -r $configDir/startupconfig ] && . $configDir/startupconfig | ||
80 | 48 | | |||
81 | #Manually disable auto scaling because we are scaling above | 49 | #Manually disable auto scaling because we are scaling above | ||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |