From 2c464f421827c1729d8bbd1e6df67193ac7d3511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20=C3=87EL=C4=B0K?= Date: Mon, 22 Nov 2021 18:32:23 +0300 Subject: [PATCH] added zano url-scheme handler MacOS, Windows, Linux setups (#307) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * added zano url-scheme handler MacOS, Windows, Linux setups * pass parameters to executable and print console Co-authored-by: Barış Çelik --- src/gui/qt-daemon/main.cpp | 4 ++++ utils/Zano.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/qt-daemon/main.cpp b/src/gui/qt-daemon/main.cpp index bd1dd934..5e19390b 100644 --- a/src/gui/qt-daemon/main.cpp +++ b/src/gui/qt-daemon/main.cpp @@ -26,6 +26,10 @@ int main(int argc, char *argv[]) // See http://crbug.com/436603. // _set_FMA3_enable(0); //#endif // ARCH_CPU_X86_64 && _MSC_VER <= 1800 + + std::cout << argc << std::endl; + std::cout << argv[0] << std::endl; + std::cout << argv[1] << std::endl; #ifdef _MSC_VER #ifdef _WIN64 diff --git a/utils/Zano.sh b/utils/Zano.sh index 6b3c5fb4..33188ef3 100755 --- a/utils/Zano.sh +++ b/utils/Zano.sh @@ -29,7 +29,7 @@ create_desktop_icon() echo GenericName=My Application | tee -a $target_file_name > /dev/null echo Comment=Doing some funny stuff | tee -a $target_file_name > /dev/null echo Icon=$script_dir/html/files/desktop_linux_icon.png | tee -a $target_file_name > /dev/null - echo Exec=$script_dir/Zano | tee -a $target_file_name > /dev/null + echo Exec=$script_dir/Zano %u | tee -a $target_file_name > /dev/null echo Terminal=true | tee -a $target_file_name > /dev/null echo Type=Application | tee -a $target_file_name > /dev/null echo "Categories=Qt;Utility;" | tee -a $target_file_name > /dev/null