summarylogtreecommitdiffstats
path: root/0003-Provide-a-sane-default-for-parts-path.patch
blob: 9ad44e3597ffe1f7f5a8fff1c7f64de264d1ca7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 67fcfc02ff4f799742ad6b29cb9a5a46c782a1a0 Mon Sep 17 00:00:00 2001
From: Michael Lass <lass@mail.uni-paderborn.de>
Date: Sat, 11 Jun 2016 23:07:30 +0200
Subject: [PATCH 3/3] Provide a sane default for parts path

---
 src/fapplication.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/fapplication.cpp b/src/fapplication.cpp
index 5a2693c..0624012 100644
--- a/src/fapplication.cpp
+++ b/src/fapplication.cpp
@@ -368,6 +368,7 @@ bool FApplication::init() {
 	m_serviceType = NoService;
 
 	QList<int> toRemove;
+	FolderUtils::setAppPartsPath("/usr/share/fritzing/parts/");
 	for (int i = 0; i < m_arguments.length(); i++) {
 		if ((m_arguments[i].compare("-h", Qt::CaseInsensitive) == 0) || 
 			(m_arguments[i].compare("-help", Qt::CaseInsensitive) == 0) || 
-- 
2.9.0