mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
From 04106010ae2a13b3a2a93e210062998ee51778ca Mon Sep 17 00:00:00 2001
|
|
From: Samuel Dionne-Riel <samuel@dionne-riel.com>
|
|
Date: Tue, 30 Mar 2021 15:47:38 -0400
|
|
Subject: [PATCH] [NixOS] provide mobile-broadband-provider-info path
|
|
|
|
---
|
|
src/qofonoconnectioncontext.cpp | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/qofonoconnectioncontext.cpp b/src/qofonoconnectioncontext.cpp
|
|
index b5877ed..455167c 100644
|
|
--- a/src/qofonoconnectioncontext.cpp
|
|
+++ b/src/qofonoconnectioncontext.cpp
|
|
@@ -346,7 +346,7 @@ bool QOfonoConnectionContext::validateProvisioning(const QString &providerString
|
|
QXmlQuery query;
|
|
QString provider = providerString;
|
|
|
|
- query.setFocus(QUrl("/usr/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
|
+ query.setFocus(QUrl("@mobile-broadband-provider-info@/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
|
|
|
if (provider.contains("\'")) {
|
|
provider = provider.replace("\'", "'");
|
|
@@ -457,7 +457,7 @@ void QOfonoConnectionContext::provision(const QString &provider, const QString &
|
|
{
|
|
#ifdef QOFONO_PROVISIONING
|
|
QXmlQuery query;
|
|
- query.setFocus(QUrl("/usr/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
|
+ query.setFocus(QUrl("@mobile-broadband-provider-info@/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
|
|
|
QString providerStr = provider;
|
|
if (providerStr.contains("\'")) {
|
|
--
|
|
2.28.0
|
|
|