summaryrefslogtreecommitdiff
path: root/ui/qt5/horizonwizard.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-28 23:00:01 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-28 23:00:01 -0500
commit88e66fdabc8c6b5ff049d99514a74fadec2b0e51 (patch)
treeebcbf15e9ca77f674567285f15c69cb55200dff8 /ui/qt5/horizonwizard.cc
parentee43db00345e9d905597710dd6087db9e8279974 (diff)
downloadhorizon-88e66fdabc8c6b5ff049d99514a74fadec2b0e51.tar.gz
horizon-88e66fdabc8c6b5ff049d99514a74fadec2b0e51.tar.bz2
horizon-88e66fdabc8c6b5ff049d99514a74fadec2b0e51.tar.xz
horizon-88e66fdabc8c6b5ff049d99514a74fadec2b0e51.zip
Qt UI: Add helper to manipulate Xauthority files
This allows us to run software after the hostname changes in the Installation Environment and live desktops. Closes: #372
Diffstat (limited to 'ui/qt5/horizonwizard.cc')
-rw-r--r--ui/qt5/horizonwizard.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc
index 0dfd43e..5096db9 100644
--- a/ui/qt5/horizonwizard.cc
+++ b/ui/qt5/horizonwizard.cc
@@ -546,7 +546,12 @@ QString HorizonWizard::toHScript() {
lines << "network false";
}
- lines << ("hostname " + field("hostname").toString());
+ const auto hostname = field("hostname").toString();
+ lines << ("hostname " + hostname);
+#ifdef HAS_INSTALL_ENV
+ QProcess p;
+ p.execute("horizon-xauth-helper", {hostname});
+#endif
switch(arch) {
case aarch64: