Qt Install framework Не работает создание иконки в Linux



  • Добавил в инстолятор кастомный скрипт по созданию иконки, сделал как в примере, после запуска пишет что команда выполненна успешно но desktop файл не создан.

    function Controller()
    {
        installer.uninstallationFinished.connect(this, Controller.prototype.uninstallationFinished);
        installer.installationFinished.connect(this, Controller.prototype.installationFinished);
    }
    
    Controller.prototype.installationFinished = function()
    {
    
        console.log("start icons");
        if (systemInfo.kernelType === "winnt") {
            installer.performOperation("CreateShortcut",
                                   "@TargetDir@/@Name@.exe",
                                   "@DesktopDir@/@Name@.lnk");
        }
    
        if (systemInfo.kernelType === "linux") {
        
            console.log("start icons Linux");
        
            installer.performOperation("CreateDesktopEntry",
                                   "@HomeDir@/.local/share/applications/@Name@.desktop",
                                   "Version=@Version@\nType=Application\nTerminal=false\nExec=@TargetDir@/@Name@.sh\nName=@Name@\nIcon=@TargetDir@/icon.png\nName[en_US]=YourApp_name");
    
            installer.performOperation("Copy",
                                           "@HomeDir@/.local/share/applications/@Name@.desktop",
                                           "@HomeDir@/Desktop/@Name@.desktop");
        }
    }
    
    
    Controller.prototype.uninstallationFinished = function()
    {
    
    }
    

    ubuntu 16 04
    Qt Install framework 3.0.4

    Wrote permissions for maintenance tool.
    [9823] Maintenance tool restart: false.
    [9824] start icons
    [9824] start icons Linux
    [9824] perform  operation: CreateDesktopEntry
    [9824] 	- arguments: /home/endrii/.local/share/applications/qt-deployer.desktop
    [9824] Done
    [9826] undo  operation: CreateDesktopEntry
    [9826] 	- arguments: /home/endrii/.local/share/applications/qt-deployer.desktop
    [9826] Done
    [9826] perform  operation: Copy
    [9826] 	- arguments: /home/endrii/.local/share/applications/qt-deployer.desktop
    [9826] Done
    [9826] undo  operation: Copy
    [9826] 	- arguments: /home/endrii/.local/share/applications/qt-deployer.desktop
    [9826] Done
    [12066] Control script callback "FinishedPageCallback" does not exist.
    
    

    В чем может быть проблема ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.