Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Install framework Icon creation in Linux does not work
Forum Update on Monday, May 27th 2025

Qt Install framework Icon creation in Linux does not work

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 411 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EndrII 0
    wrote on 28 Jun 2018, 13:19 last edited by EndrII 0
    #1

    I Add into installer custom script to create icons, made in the example, after the launch writes that the command successfully but the desktop file is not created.

    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.
    
    

    What could be the problem ?

    1 Reply Last reply
    0

    1/1

    28 Jun 2018, 13:19

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved