photoqt: 4.6 -> 4.7 (#361171)
[NixPkgs.git] / pkgs / desktops / pantheon / apps / switchboard-plugs / network / fix-paths.patch
blob48458ca226bb0fea298b91f905f57e89c04ef197
1 diff --git a/src/Views/VPNPage.vala b/src/Views/VPNPage.vala
2 index 21488d1e..f9915e5d 100644
3 --- a/src/Views/VPNPage.vala
4 +++ b/src/Views/VPNPage.vala
5 @@ -279,7 +279,7 @@ public class Network.VPNPage : Network.Widgets.Page {
6 private void try_connection_editor (string args) {
7 try {
8 var appinfo = AppInfo.create_from_commandline (
9 - "nm-connection-editor %s".printf (args),
10 + "@networkmanagerapplet@/bin/nm-connection-editor %s".printf (args),
11 null,
12 GLib.AppInfoCreateFlags.NONE
14 diff --git a/src/Widgets/Page.vala b/src/Widgets/Page.vala
15 index cbcc8357..c6276d5a 100644
16 --- a/src/Widgets/Page.vala
17 +++ b/src/Widgets/Page.vala
18 @@ -189,7 +189,7 @@ namespace Network.Widgets {
19 protected void edit_connections () {
20 try {
21 var appinfo = AppInfo.create_from_commandline (
22 - "nm-connection-editor", null, AppInfoCreateFlags.NONE
23 + "@networkmanagerapplet@/bin/nm-connection-editor", null, AppInfoCreateFlags.NONE
25 appinfo.launch (null, null);
26 } catch (Error e) {
27 @@ -200,7 +200,7 @@ namespace Network.Widgets {
28 protected void open_advanced_settings () {
29 try {
30 var appinfo = AppInfo.create_from_commandline (
31 - "nm-connection-editor --edit=%s".printf (uuid), null, AppInfoCreateFlags.NONE
32 + "@networkmanagerapplet@/bin/nm-connection-editor --edit=%s".printf (uuid), null, AppInfoCreateFlags.NONE
35 appinfo.launch (null, null);
36 diff --git a/src/Widgets/VPN/VPNInfoDialog.vala b/src/Widgets/VPN/VPNInfoDialog.vala
37 index e647c43b..44ce61c6 100644
38 --- a/src/Widgets/VPN/VPNInfoDialog.vala
39 +++ b/src/Widgets/VPN/VPNInfoDialog.vala
40 @@ -70,7 +70,7 @@ public class Network.Widgets.VPNInfoDialog : Granite.MessageDialog {
41 if (response == 1) {
42 try {
43 var appinfo = AppInfo.create_from_commandline (
44 - "nm-connection-editor --edit=%s".printf (connection.get_uuid ()),
45 + "@networkmanagerapplet@/bin/nm-connection-editor --edit=%s".printf (connection.get_uuid ()),
46 null,
47 GLib.AppInfoCreateFlags.NONE