QuasarApp / CQtDeployer

This project is used to deploy applications written using QML, qt or other С / С++ frameworks.
https://quasarapp.ddns.net:3031/docs/QuasarApp/CQtDeployer/latest/
GNU Lesser General Public License v3.0
578 stars 87 forks source link

Create Desktop shotcut after install completed #680

Closed MMucka closed 2 years ago

MMucka commented 2 years ago

I want to ask, if it is possible to choose whether install wizard will create Desktop shotcut for easy access. It should be possible by custom script, but I want to know, if there is some easyer way.

Thank you Regards

EndrII commented 2 years ago

Hi

In current time CQtDeployer tool automatically create shortcuts in a system menu of applications.

You can disable generate shortcuts using the -disableShortCut option

cqtdeployer ... -disableShortCut executableName

But not support creating shortcuts in desktop.

MMucka commented 2 years ago

Hi, Thank you for your answer.

Is it possible to create Desktop shotcut by custom script?

EndrII commented 2 years ago

Sorry. but i checked our code and in Windows platform cqtdeployer automatically generate shortcut to desktop.

Linux not support desktop shortcuts, because Linux do not have one standard for the desktop locations. Many distributions use the ~/Desktop location for shortcuts but not all. So we can't to add support automatically generation shortcuts for desktop on Linux platforms.

But you can create your custom script for creating desktop file for your application or use custom qifw template with code that will create desktop shortcut.

See qifw templates here or official documentation. and you can see how to generate Linux Shortcut here.

And you can check how to use custom qifw template in cqtdeployer here

MMucka commented 2 years ago

Thank you very much for this information. I need that shortcut for Ubuntu, so I will try to create qifw template.

Best regards