Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libqofono / 0001-NixOS-provide-mobile-broadband-provider-info-path.patch
blob94b4c61befe5aa30af52d652123d4a3e6eb53c8c
1 From 04106010ae2a13b3a2a93e210062998ee51778ca Mon Sep 17 00:00:00 2001
2 From: Samuel Dionne-Riel <samuel@dionne-riel.com>
3 Date: Tue, 30 Mar 2021 15:47:38 -0400
4 Subject: [PATCH] [NixOS] provide mobile-broadband-provider-info path
6 ---
7 src/qofonoconnectioncontext.cpp | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
10 diff --git a/src/qofonoconnectioncontext.cpp b/src/qofonoconnectioncontext.cpp
11 index b5877ed..455167c 100644
12 --- a/src/qofonoconnectioncontext.cpp
13 +++ b/src/qofonoconnectioncontext.cpp
14 @@ -346,7 +346,7 @@ bool QOfonoConnectionContext::validateProvisioning(const QString &providerString
15 QXmlQuery query;
16 QString provider = providerString;
18 - query.setFocus(QUrl("/usr/share/mobile-broadband-provider-info/serviceproviders.xml"));
19 + query.setFocus(QUrl("@mobile-broadband-provider-info@/share/mobile-broadband-provider-info/serviceproviders.xml"));
21 if (provider.contains("\'")) {
22 provider = provider.replace("\'", "&apos;");
23 @@ -457,7 +457,7 @@ void QOfonoConnectionContext::provision(const QString &provider, const QString &
25 #ifdef QOFONO_PROVISIONING
26 QXmlQuery query;
27 - query.setFocus(QUrl("/usr/share/mobile-broadband-provider-info/serviceproviders.xml"));
28 + query.setFocus(QUrl("@mobile-broadband-provider-info@/share/mobile-broadband-provider-info/serviceproviders.xml"));
30 QString providerStr = provider;
31 if (providerStr.contains("\'")) {
32 --
33 2.28.0