How to optionally create Linux desktop Application Shortcuts ?

Comments

2 comments

  • Avatar
    Curtis Rubel

    Basically you can just add a ruleList section to the end of your shortcut section......

    <shortcut> 
       <comment>Start VistaMUSE IOS</comment>
       <exec>/usr/local/bin/start_vm.sh</exec>
       <icon>utilities-system-monitor</icon>
       <name>Start IOS</name> 
       <path></path> 
       <platforms>linux</platforms>
       <runasadmin>0</runasadmin>
       <runinterminal>0</runinterminal>
       <windowsexec></windowsexec>
       <windowsexecargs></windowsexecargs>
       <windowsicon></windowsicon>
       <windowspath></windowspath>
       <rulelist> 
         <comparevalues>
           <logic>equals</logic>
           <value1>${installComputer}</value1>
           <value2>Host</value2> 
         </comparevalues> 
       </rulelist> 
    </shortcut>
    
  • Avatar
    juanjo

    You can also use a <createShortcuts> action, which do not require adding the shortcut to any folder. It is especially useful when creating shortcuts on demand in the final page:

    <createShortcuts>
        <progressText>Do you want to create a shortcut in the Desktop?</progressText>
        <destination>~/Desktop</destination>
        <shortcutList>
          <shortcut>
             <comment>Start VistaMUSE IOS</comment>
             <exec>/usr/local/bin/start_vm.sh</exec>
             <icon>utilities-system-monitor</icon>
             <name>Start IOS</name> 
             <runasadmin>0</runasadmin>
             <runinterminal>0</runinterminal>
          </shortcut>
        </shortcutList>
        <rulelist> 
          <comparevalues>
            <logic>equals</logic>
            <value1>${installComputer}</value1>
            <value2>Host</value2> 
          </comparevalues> 
       </rulelist> 
    </createShortcuts>
    

    You can find additional information in this article

Please sign in to leave a comment.