summaryrefslogtreecommitdiff
path: root/packages/irk/files/install-default-conf.patch
blob: a55992a737322a04af32e98df34163972b251eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- irk/irk.cpp~install-default-config
+++ irk/irk.cpp
@@ -470,6 +470,10 @@
 
 void CGIRK::readConfig()
 {
+	// check if the config is there, if not copy it from default location
+	// FIXME: Do it properly once confirmed that it works :D
+	::system( "if [ ! -e \"$HOME/Settings/IRK.conf\" ]; then cat $OPIEDIR/etc/skel/IRK.conf >$HOME/Settings/IRK.conf; fi" );
+
 	// clear the keyboard list ready for the new one to be loaded in
 	m_keyboardList.clear();
 #if !POCKETOP_BUILD