1 From 6a26922e5e4363de36057d635a1bf889160b2533 Mon Sep 17 00:00:00 2001
2 From: Lorenz Brun <lorenz@brun.one>
3 Date: Fri, 28 Jan 2022 18:44:43 +0100
4 Subject: [PATCH] Do not use store path for autostart on Nix
7 linphone-app/src/app/App.cpp | 4 ++++
8 1 file changed, 4 insertions(+)
10 diff --git a/linphone-app/src/app/App.cpp b/linphone-app/src/app/App.cpp
11 index 868f8f44..2c61c648 100644
12 --- a/linphone-app/src/app/App.cpp
13 +++ b/linphone-app/src/app/App.cpp
14 @@ -858,6 +858,10 @@ void App::setAutoStart (bool enabled) {
15 exec = QProcessEnvironment::systemEnvironment().value(QStringLiteral("APPIMAGE"));
16 qDebug() << "exec path autostart set appimage=" << exec;
18 + else if (binPath.startsWith("/nix/store")) { // Nix/NixOS
19 + exec = QStringLiteral("linphone");
20 + qDebug() << "exec path autostart set nix=" << exec;
22 else { //classic package
24 qDebug() << "exec path autostart set classic package=" << exec;