Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. create desktop shortcut on fedora and rhel using Qt Installer Framework.

create desktop shortcut on fedora and rhel using Qt Installer Framework.

Scheduled Pinned Locked Moved General and Desktop
installerredhat 6fedorashortcut
1 Posts 1 Posters 1.3k Views 1 Watching
  • 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.
  • RatzzR Offline
    RatzzR Offline
    Ratzz
    wrote on last edited by Ratzz
    #1

    I have created a desktop shortcut in ubuntu and works fine using this . Now I am trying to create desktop shortcut on rhel and fedora using Qt Installer Framework using these lines.

    [Desktop Entry]
    Type=Application
    Name=App_name
    Exec=/path/to/App_name
    Icon=/path/to/App_name/App_name.ico
    Terminal=false
    

    The shortcut is successfully created on desktop in rhel and fedora but when trying to run the app_name.desktop from terminal it gives

    app_name.desktop: line 1: [Desktop Entry]: command not found 
    

    I cant figure it why . is these any other method to create desktop shortcut ?
    I have just added following lines in my installscript.qs

    component.addOperation("CreateDesktopEntry", "@HomeDir@/Desktop/App_name.desktop", "Type=Application\nName=App_name\nExec=@TargetDir@/App_name\nIcon=@TargetDir@/App_name.ico\nTerminal=False")
    

    --Alles ist gut.

    1 Reply Last reply
    1

    • Login

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