File change_target_name.patch of Package qBittorrent-Enhanced-Edition
diff --git a/dist/unix/CMakeLists.txt b/dist/unix/CMakeLists.txt
index defe3af0..9f04e203 100644
--- a/dist/unix/CMakeLists.txt
+++ b/dist/unix/CMakeLists.txt
@@ -11,17 +11,17 @@ if (SYSTEMD)
endif()
endif()
set(EXPAND_BINDIR ${CMAKE_INSTALL_FULL_BINDIR})
- configure_file(systemd/qbittorrent-nox@.service.in ${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-nox@.service @ONLY)
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-nox@.service"
+ configure_file(systemd/qbittorrent-ee-nox@.service.in ${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-ee-nox@.service @ONLY)
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/qbittorrent-ee-nox@.service"
DESTINATION ${SYSTEMD_SERVICES_INSTALL_DIR}
COMPONENT data
)
endif()
if (GUI)
- list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent.1)
+ list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent-ee.1)
else()
- list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent-nox.1)
+ list(APPEND MAN_FILES ${PROJECT_SOURCE_DIR}/doc/qbittorrent-ee-nox.1)
endif()
install(FILES ${MAN_FILES}
diff --git a/dist/unix/org.qbittorrent.qBittorrent.desktop b/dist/unix/org.qbittorrent.qBittorrent.desktop
index 47161042..272d1c06 100644
--- a/dist/unix/org.qbittorrent.qBittorrent.desktop
+++ b/dist/unix/org.qbittorrent.qBittorrent.desktop
@@ -1,6 +1,6 @@
[Desktop Entry]
Categories=Network;FileTransfer;P2P;Qt;
-Exec=qbittorrent %U
+Exec=qbittorrent-ee %U
GenericName=BitTorrent client
Comment=Download and share files over BitTorrent
Icon=qbittorrent
diff --git a/dist/unix/systemd/qbittorrent-nox@.service.in b/dist/unix/systemd/qbittorrent-ee-nox@.service.in
similarity index 56%
rename from dist/unix/systemd/qbittorrent-nox@.service.in
rename to dist/unix/systemd/qbittorrent-ee-nox@.service.in
index fe49c31d..688cd3ef 100644
--- a/dist/unix/systemd/qbittorrent-nox@.service.in
+++ b/dist/unix/systemd/qbittorrent-ee-nox@.service.in
@@ -1,6 +1,6 @@
[Unit]
-Description=qBittorrent-nox service for user %I
-Documentation=man:qbittorrent-nox(1)
+Description=qBittorrent-ee-nox service for user %I
+Documentation=man:qbittorrent-ee-nox(1)
Wants=network-online.target
After=local-fs.target network-online.target nss-lookup.target
@@ -8,7 +8,7 @@ After=local-fs.target network-online.target nss-lookup.target
Type=simple
PrivateTmp=false
User=%i
-ExecStart=@EXPAND_BINDIR@/qbittorrent-nox
+ExecStart=@EXPAND_BINDIR@/qbittorrent-ee-nox --configuration="ee"
TimeoutStopSec=1800
[Install]
diff --git a/doc/qbittorrent-nox.1 b/doc/qbittorrent-ee-nox.1
similarity index 100%
rename from doc/qbittorrent-nox.1
rename to doc/qbittorrent-ee-nox.1
diff --git a/doc/qbittorrent.1 b/doc/qbittorrent-ee.1
similarity index 100%
rename from doc/qbittorrent.1
rename to doc/qbittorrent-ee.1
diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt
index a531f7fd..7f30b815 100644
--- a/src/app/CMakeLists.txt
+++ b/src/app/CMakeLists.txt
@@ -65,9 +65,9 @@ target_link_libraries(qbt_app PRIVATE
set_target_properties(qbt_app PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
if (GUI)
- set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent)
+ set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent-ee)
else()
- set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent-nox)
+ set_target_properties(qbt_app PROPERTIES OUTPUT_NAME qbittorrent-ee-nox)
endif()
# Additional platform specific configuration