Browse Source

Set an initial qtox ini file

This allows the DHT list to be populated likely before the user opens the app
Bob Mottram 8 years ago
parent
commit
154ed49fd7
No account linked to committer's email
2 changed files with 86 additions and 7 deletions
  1. 77
    0
      src/freedombone-config-qtox
  2. 9
    7
      src/freedombone-image-customise

+ 77
- 0
src/freedombone-config-qtox View File

@@ -0,0 +1,77 @@
1
+[Advanced]
2
+dbSyncType=2
3
+
4
+[Audio]
5
+audioInDevEnabled=true
6
+audioOutDevEnabled=true
7
+inDev=
8
+inGain=0
9
+outDev=
10
+outVolume=100
11
+
12
+[Chat]
13
+chatMessageFont=@Variant(\0\0\0@\0\0\0\x16\0\x44\0\x65\0j\0\x61\0V\0u\0 \0S\0\x61\0n\0s\xbf\xf0\0\0\0\0\0\0\0\0\0\r\x5\x1\0\x32\x10)
14
+
15
+[DHT Server]
16
+dhtServerList\size=88
17
+useCustomList=true
18
+
19
+[GUI]
20
+dateFormat="dddd, MMMM d, yyyy"
21
+emojiFontPointSize=16
22
+firstColumnHandlePos=50
23
+lightTrayIcon=false
24
+minimizeOnClose=false
25
+minimizeToTray=false
26
+secondColumnHandlePosFromRight=50
27
+smileyPack=:/smileys/emojione/emoticons.xml
28
+statusChangeNotificationEnabled=false
29
+style=Fusion
30
+themeColor=0
31
+timestampFormat=hh:mm:ss
32
+useEmoticons=true
33
+
34
+[General]
35
+autoAwayTime=10
36
+autoSaveEnabled=false
37
+autostartInTray=false
38
+busySound=false
39
+checkUpdates=true
40
+closeToTray=false
41
+currentProfile=data
42
+dontGroupWindows=true
43
+enableIPv6=true
44
+fauxOfflineMessaging=true
45
+forceTCP=false
46
+globalAutoAcceptDir=/home/fbone/
47
+groupAlwaysNotify=false
48
+groupchatPosition=true
49
+makeToxPortable=false
50
+notifySound=true
51
+proxyAddr=
52
+proxyPort=0
53
+proxyType=0
54
+separateWindow=false
55
+showInFront=false
56
+showSystemTray=true
57
+showWindow=true
58
+stylePreference=1
59
+translation=en
60
+
61
+[Login]
62
+autoLogin=true
63
+
64
+[State]
65
+dialogGeometry=@ByteArray()
66
+dialogSettingsGeometry=@ByteArray()
67
+dialogSplitterState=@ByteArray()
68
+splitterState=@ByteArray(\0\0\0\xff\0\0\0\x1\0\0\0\x2\0\0\0\xff\0\0\x2\b\0\0\0\0\x6\x1\0\0\0\x1\0)
69
+windowGeometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0\0\0\0\0\x34\0\0\x3\b\0\0\x1\xf4\0\0\0\x1\0\0\0P\0\0\x3\a\0\0\x1\xf3\0\0\0\0\0\0)
70
+windowState=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x3\a\0\0\x1\xa4\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0)
71
+
72
+[Video]
73
+camVideoFPS=0
74
+camVideoRes=@Rect(0 0 0 0)
75
+screenGrabbed=false
76
+screenRegion=@Rect(0 0 0 0)
77
+videoDev=

+ 9
- 7
src/freedombone-image-customise View File

@@ -230,7 +230,7 @@ following commands, then enter your details.
230 230
  |    |   (.-' (.-' (   | (   )|  |  | |   )(   )|  | (.-'
231 231
  '    '     --'  --'  -' -  -' '  '   -' -'   -' '   -  --'
232 232
 
233
-                    Freedom in the Mesh
233
+					Freedom in the Mesh
234 234
 " > $rootdir/etc/motd
235 235
 	fi
236 236
 }
@@ -683,12 +683,14 @@ function configure_user_interface {
683 683
 	# browser
684 684
 	chroot "$rootdir" apt-get -y install $BROWSER
685 685
 
686
-	# NOTE: The Tox repo only supports a limited range of architectures
687
-	if [[ $ARCHITECTURE == 'amd64' || $ARCHITECTURE == 'i386' ]]; then
688
-		# Tox user interface
689
-		enable_tox_repo
690
-		mesh_tox_qtox
691
-		#chroot "$rootdir" apt-get -y --force-yes install qtox
686
+	# Tox user interface
687
+	enable_tox_repo
688
+	mesh_tox_qtox
689
+	# copy the default qtox ini file
690
+	if [ ! -d ${rootdir}/home/${MY_USERNAME}/.config/tox ]; then
691
+		mkdir ${rootdir}/home/${MY_USERNAME}/.config/tox
692
+		cp /usr/local/bin/freedombone-config-qtox ${rootdir}/home/${MY_USERNAME}/.config/tox/qtox.ini
693
+		chroot "$rootdir" chown -R ${MY_USERNAME}:${MY_USERNAME} /home/${MY_USERNAME}/.config
692 694
 	fi
693 695
 
694 696
 	# Syncthing