Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Install framework Icon creation in Linux does not work
Qt 6.12 LTS is out! See what's new in the release blog

Qt Install framework Icon creation in Linux does not work

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 711 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.
  • EndrII 0E Offline
    EndrII 0E Offline
    EndrII 0
    wrote on 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

    • Login

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