-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-basic-preferences.sh
executable file
·52 lines (43 loc) · 2.02 KB
/
create-basic-preferences.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
gid_path="$1"
if [ "$gid_path" == "" ] ; then
gid_path="/gid"
fi
echo gid_path="$gid_path"
VERSION=`$gid_path/gidx -version`
echo "$gid_path/gidx -version = $VERSION"
PREFERENCESFOLDER=$HOME/.gid/${VERSION}/
mkdir -p ${PREFERENCESFOLDER}
PREFERENCESFILE=${PREFERENCESFOLDER}gid.ini
echo "preferences files = ${PREFERENCESFILE}"
# with 'SoftwareOpenGL 0' snapshots are black
# official version preferences file:
# PREFERENCESFILE=$HOME/.gidDefaults
# developer version preferences file
echo "SoftwareOpenGL 1" >> ${PREFERENCESFILE}
echo "Theme_configured 1" >> ${PREFERENCESFILE}
echo "Theme(Current) GiD_classic_renewed" >> ${PREFERENCESFILE}
echo "Theme(MenuType) native" >> ${PREFERENCESFILE}
echo "Theme(HighResolutionScaleFactor) 1" >> ${PREFERENCESFILE}
# version < 16.1.10d
echo "OGL_configured 1" >> ${PREFERENCESFILE}
# This is to avoid black screen when doing zoom:
echo "OGL_emulateFrontBuffer 1" >> ${PREFERENCESFILE}
# version >= 16.1.10d
echo "OpenGL(Configured) 1" >> ${PREFERENCESFILE}
# This is to avoid black screen when doing zoom:
echo "OpenGL(EmulateFrontBuffer) 1" >> ${PREFERENCESFILE}
# end gid versions
echo "Theme_configured 1" >> ${PREFERENCESFILE}
echo "ShowCheckNewVersion 0" >> ${PREFERENCESFILE}
# So that gid opens +0- maximized:
echo "MainWindowGeom 1276x749+0+0" >> ${PREFERENCESFILE}
echo "PrePostStdBarWindowGeom INSIDETOP {} 1 StdBitmaps" >> ${PREFERENCESFILE}
echo "PrePostBitmapsWindowGeom INSIDELEFT {} 1 CreateBitmaps" >> ${PREFERENCESFILE}
echo "PrePostMacrosToolbarWindowGeom INSIDELEFT {} 1 toolbarmacros::Create INSIDELEFT" >> ${PREFERENCESFILE}
echo "PostViewResultsBarWindowGeom INSIDELEFT {} 1 ViewResultsBarBitmaps" >> ${PREFERENCESFILE}
echo "PrePostStatusWindowGeom INSIDE {} 1 BottomStatusFrame" >> ${PREFERENCESFILE}
echo "PrePostTopMenuWindowGeom INSIDE {} 1 TopMenuFrame" >> ${PREFERENCESFILE}
echo "PrePostRightButWindowGeom INSIDE {} RightButtons" >> ${PREFERENCESFILE}
echo "PrePostEntryWindowGeom INSIDE {} 1 BottomEntryFrame" >> ${PREFERENCESFILE}
echo "Language en" >> ${PREFERENCESFILE}