Sophie

Sophie

distrib > Mageia > 8 > aarch64 > by-pkgid > 10330b5dcfcd6ea2274f9b04a3a10d84 > files > 3

bitfighter-021-1.mga8.src.rpm

From 70748f1451c9216ebc9a34b576c79cee801f250d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= <rverschelde@gmail.com>
Date: Fri, 23 Oct 2020 10:41:21 +0200
Subject: [PATCH] notifier: Use `/usr/bin/env python3` on Linux

---
 cmake/Platform/Linux.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/Platform/Linux.cmake b/cmake/Platform/Linux.cmake
index d2929a00d..d75e55acd 100644
--- a/cmake/Platform/Linux.cmake
+++ b/cmake/Platform/Linux.cmake
@@ -110,7 +110,7 @@ function(BF_PLATFORM_INSTALL targetName)
 
 	if(INSTALL_NOTIFIER)
 		# Modify python script to have the shebang
-		install(CODE "execute_process(COMMAND sed -i -e \"1s@^@#!/usr/bin/env python\\\\n\\\\n@\" ${CMAKE_SOURCE_DIR}/notifier/bitfighter_notifier.py)")
+		install(CODE "execute_process(COMMAND sed -i -e \"1s@^@#!/usr/bin/env python3\\\\n\\\\n@\" ${CMAKE_SOURCE_DIR}/notifier/bitfighter_notifier.py)")
 		# Modify python script to use proper path to the system-installed icon
 		install(CODE "execute_process(COMMAND sed -i -e \"s@redship48.png@bitfighter.png@\" -e \"s@^ICON_BASE =.*@ICON_BASE = \\\"${CMAKE_DESKTOP_DATA_PATH}/pixmaps/\\\"@\" ${CMAKE_SOURCE_DIR}/notifier/bitfighter_notifier.py)")
 		install(PROGRAMS ${CMAKE_SOURCE_DIR}/notifier/bitfighter_notifier.py DESTINATION ${CMAKE_BIN_PATH} RENAME bitfighter_notifier)
-- 
2.29.0