diff options
author | Wei-Ming Yang <rick68@gmail.com> | 2016-01-03 16:06:47 +0800 |
---|---|---|
committer | Wei-Ming Yang <rick68@gmail.com> | 2016-01-04 14:29:02 +0800 |
commit | 89fbb184d18a5971171202c11c3f84281ff47193 (patch) | |
tree | 0cc37e36c7e0a9e9b4ab863487f5c4eeb873eaa3 /pkgs/applications/networking/ostinato/drone_ini.patch | |
parent | f300b2861de690ad9b1c5981020d33fa01a15349 (diff) | |
download | nixlib-89fbb184d18a5971171202c11c3f84281ff47193.tar nixlib-89fbb184d18a5971171202c11c3f84281ff47193.tar.gz nixlib-89fbb184d18a5971171202c11c3f84281ff47193.tar.bz2 nixlib-89fbb184d18a5971171202c11c3f84281ff47193.tar.lz nixlib-89fbb184d18a5971171202c11c3f84281ff47193.tar.xz nixlib-89fbb184d18a5971171202c11c3f84281ff47193.tar.zst nixlib-89fbb184d18a5971171202c11c3f84281ff47193.zip |
ostinato: add ostinato package in nixpkgs
Diffstat (limited to 'pkgs/applications/networking/ostinato/drone_ini.patch')
-rw-r--r-- | pkgs/applications/networking/ostinato/drone_ini.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/applications/networking/ostinato/drone_ini.patch b/pkgs/applications/networking/ostinato/drone_ini.patch new file mode 100644 index 000000000000..5818f4e94c30 --- /dev/null +++ b/pkgs/applications/networking/ostinato/drone_ini.patch @@ -0,0 +1,14 @@ +diff -Nru ostinato-414d89860de0987843295d149bcabeac7c6fd9e5/server/drone_main.cpp ostinato-414d89860de0987843295d149bcabeac7c6fd9e5.new/server/drone_main.cpp +--- ostinato-414d89860de0987843295d149bcabeac7c6fd9e5/server/drone_main.cpp 2015-12-24 16:46:35.000000000 +0800 ++++ ostinato-414d89860de0987843295d149bcabeac7c6fd9e5.new/server/drone_main.cpp 2015-12-30 20:59:04.319199699 +0800 +@@ -62,8 +62,8 @@ + /* (Portable Mode) If we have a .ini file in the same directory as the + executable, we use that instead of the platform specific location + and format for the settings */ +- QString portableIni = QCoreApplication::applicationDirPath() +- + "/drone.ini"; ++ QString portableIni = argc > 2 ? argv[2] : ++ QCoreApplication::applicationDirPath() + "/drone.ini"; + if (QFile::exists(portableIni)) + appSettings = new QSettings(portableIni, QSettings::IniFormat); + else |