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.
Forum Updated to NodeBB v4.3 + New Features

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.2k 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.
  • R Offline
    R Offline
    Ratzz
    wrote on 5 Oct 2015, 07:50 last edited by Ratzz 10 May 2015, 09:45
    #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

    1/1

    5 Oct 2015, 07:50

    • 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