diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2022-01-30 16:38:52 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2022-02-06 16:15:25 +0100 |
commit | a27a77f8c110907be034543f1456f4d4defe63fc (patch) | |
tree | 66420490e17d345659033faa9652bf21c7b53582 /setup.py | |
parent | [Console] Add the torrent label to info command (diff) | |
download | deluge-a27a77f8c110907be034543f1456f4d4defe63fc.tar.xz deluge-a27a77f8c110907be034543f1456f4d4defe63fc.zip |
[Windows] Use gui_scripts for web and daemon entry points
Hide the console cmd popup when using deluge-web.exe ordeluged.exe on
Windows.
By using gui_scripts it will disable stdin and stdout for these
executable but there are `-debug` versions available if that is
required.
Ref: https://packaging.python.org/en/latest/specifications/entry-points/#use-for-scripts
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -481,6 +481,10 @@ if not windows_check() and not osx_check(): _entry_points['console_scripts'] = [ 'deluge-console = deluge.ui.console:start', +] +# On Windows use gui_scripts to hide cmd popup +script_type = 'gui_scripts' if windows_check() else 'console_scripts' +_entry_points[script_type] = [ 'deluge-web = deluge.ui.web:start', 'deluged = deluge.core.daemon_entry:start_daemon', ] |