Skip to content

Commit c53412b

Browse files
kajusnaubrianmcgillion
authored andcommitted
wifi: patch cosmic to not use secret agent auth
- force disable secret agent for cosmic-applet-network - force disable secret agent for cosmic-initial-setup - force disable secret agent for cosmic-settings - to be re-evaluated with cosmic 1.0.5 Signed-off-by: Kajus Naujokaitis <kajus.naujokaitis@unikie.com>
1 parent 92fa532 commit c53412b

File tree

7 files changed

+111
-6
lines changed

7 files changed

+111
-6
lines changed

REUSE.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@ path = [
2828
"modules/microvm/sysvms/idsvm/mitmproxy/mitmproxy-ca/*",
2929
"modules/reference/hardware/jetpack/0001-ARM-SMMU-drivers-return-always-true-for-IOMMU_CAP_CA.patch",
3030
"packages/pkgs-by-name/ghaf-intro/**/*.png",
31-
"overlays/custom-packages/cosmic/cosmic-comp/0001-Add-security-context-indicator.patch",
32-
"overlays/custom-packages/cosmic/cosmic-comp/0001-Disable-VRR-by-default.patch",
33-
"overlays/custom-packages/cosmic/cosmic-initial-setup/0001-Preselect-Ghaf-themes.patch",
34-
"overlays/custom-packages/cosmic/cosmic-greeter/0001-Replace-fallback-background-with-Ghaf-default.patch",
35-
"overlays/custom-packages/cosmic/cosmic-applets/*.patch",
31+
"overlays/custom-packages/cosmic/**/*.patch",
3632
"overlays/custom-packages/system76-scheduler/0001-fix-add-missing-loop-in-process-scheduler-refresh-ta.patch",
37-
"overlays/custom-packages/cosmic/cosmic-greeter/0002-fix-username-handle-empty-usernames.patch",
3833
"modules/secureboot/keys/*",
3934
"modules/hardware/passthrough/pci-acs-override/0001-pci-add-pcie_acs_override-for-pci-passthrough.patch",
4035
"overlays/custom-packages/systemd/0001-pam_systemd_home-Use-PAM_TEXT_INFO-for-token-prompts.patch"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From 3ea3a82a17a6a096eac0870e4575e9b65fec8174 Mon Sep 17 00:00:00 2001
2+
From: Kajus Naujokaitis <kajusn@gmail.com>
3+
Date: Wed, 4 Feb 2026 13:23:33 +0200
4+
Subject: [PATCH] dont use secret agent
5+
6+
Signed-off-by: Kajus Naujokaitis <kajusn@gmail.com>
7+
---
8+
cosmic-applet-network/src/app.rs | 4 ++--
9+
1 file changed, 2 insertions(+), 2 deletions(-)
10+
11+
diff --git a/cosmic-applet-network/src/app.rs b/cosmic-applet-network/src/app.rs
12+
index ae956bd1..2490a3a4 100644
13+
--- a/cosmic-applet-network/src/app.rs
14+
+++ b/cosmic-applet-network/src/app.rs
15+
@@ -851,7 +851,7 @@ impl cosmic::Application for CosmicNetworkApplet {
16+
access_point.ssid.clone(),
17+
access_point.hw_address,
18+
access_point.network_type,
19+
- self.secret_tx.clone(),
20+
+ None,
21+
))
22+
{
23+
if err.is_disconnected() {
24+
@@ -1065,7 +1065,7 @@ impl cosmic::Application for CosmicNetworkApplet {
25+
identity: is_enterprise.then(|| identity.clone()),
26+
password,
27+
hw_address: access_point.hw_address,
28+
- secret_tx: self.secret_tx.clone(),
29+
+ secret_tx: None,
30+
}) {
31+
if err.is_disconnected() {
32+
return system_conn().map(cosmic::Action::App);
33+
--
34+
2.52.0
35+

overlays/custom-packages/cosmic/cosmic-applets/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ prev.cosmic-applets.overrideAttrs (oldAttrs: {
1010
# audio and bluetooth patches should be removed when dbus-proxy allows
1111
./0001-bluetooth-applet-hide-bluetooth-settings-button.patch
1212
./0002-network-applet-hide-airplane-mode-toggle.patch
13+
./0003-dont-use-secret-agent.patch
1314
];
1415
postInstall = oldAttrs.postInstall or "" + ''
1516
sed -i 's|^Exec=.*|Exec=env PIPEWIRE_RUNTIME_DIR=/tmp cosmic-applet-audio|' $out/share/applications/com.system76.CosmicAppletAudio.desktop
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From 410cea4877925b0cb2537e64f6be75d80df51c1a Mon Sep 17 00:00:00 2001
2+
From: Kajus Naujokaitis <kajusn@gmail.com>
3+
Date: Wed, 4 Feb 2026 13:23:41 +0200
4+
Subject: [PATCH] dont use secret agent
5+
6+
Signed-off-by: Kajus Naujokaitis <kajusn@gmail.com>
7+
---
8+
src/page/wifi.rs | 4 ++--
9+
1 file changed, 2 insertions(+), 2 deletions(-)
10+
11+
diff --git a/src/page/wifi.rs b/src/page/wifi.rs
12+
index 5b279d9..254f610 100644
13+
--- a/src/page/wifi.rs
14+
+++ b/src/page/wifi.rs
15+
@@ -532,7 +532,7 @@ impl Page {
16+
ssid,
17+
ap.hw_address,
18+
ap.network_type,
19+
- self.secret_tx.clone(),
20+
+ None,
21+
));
22+
}
23+
}
24+
@@ -606,7 +606,7 @@ impl Page {
25+
identity,
26+
hw_address,
27+
password,
28+
- secret_tx,
29+
+ secret_tx: None,
30+
});
31+
}
32+
})
33+
--
34+
2.52.0
35+

overlays/custom-packages/cosmic/cosmic-initial-setup/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
prev.cosmic-initial-setup.overrideAttrs (oldAttrs: {
55
patches = oldAttrs.patches ++ [
66
./0001-Preselect-Ghaf-themes.patch
7+
./0002-dont-use-secret-agent.patch
78
];
89
# Don't install default cosmic themes and layouts
910
postPatch = oldAttrs.postPatch or "" + ''
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From ba8e64a345952e6c0669fbec0a5ac99dda7b53da Mon Sep 17 00:00:00 2001
2+
From: Kajus Naujokaitis <kajusn@gmail.com>
3+
Date: Wed, 4 Feb 2026 18:35:37 +0200
4+
Subject: [PATCH] dont use secret agent
5+
6+
Signed-off-by: Kajus Naujokaitis <kajusn@gmail.com>
7+
---
8+
cosmic-settings/src/pages/networking/wifi.rs | 4 ++--
9+
1 file changed, 2 insertions(+), 2 deletions(-)
10+
11+
diff --git a/cosmic-settings/src/pages/networking/wifi.rs b/cosmic-settings/src/pages/networking/wifi.rs
12+
index 7a8a09a..c6fa115 100644
13+
--- a/cosmic-settings/src/pages/networking/wifi.rs
14+
+++ b/cosmic-settings/src/pages/networking/wifi.rs
15+
@@ -501,7 +501,7 @@ impl Page {
16+
ssid,
17+
ap.hw_address,
18+
ap.network_type,
19+
- self.secret_tx.clone(),
20+
+ None,
21+
));
22+
}
23+
}
24+
@@ -572,7 +572,7 @@ impl Page {
25+
identity,
26+
hw_address,
27+
password,
28+
- secret_tx,
29+
+ secret_tx: None,
30+
});
31+
}
32+
})
33+
--
34+
2.52.0
35+

overlays/custom-packages/cosmic/cosmic-settings/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Ref: https://github.com/pop-os/cosmic-settings/blob/master/cosmic-settings/Cargo.toml
55
{ prev }:
66
(prev.cosmic-settings.overrideAttrs (oldAttrs: {
7+
patches = oldAttrs.patches ++ [
8+
./0001-dont-use-secret-agent.patch
9+
];
710
cargoBuildNoDefaultFeatures = true;
811
cargoBuildFeatures = [
912
"a11y"

0 commit comments

Comments
 (0)