Announcement

Collapse
No announcement yet.

[SOLVED] How to add script to desktop?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] How to add script to desktop?

    Hallo,

    I created script file named "test" with content "ls -l". How can I add and start this script from Desktop, please? When I try to move it from Dolphin, it creates Icon, but on click is Kate started and not script.


    #2
    Re: How to add script to desktop?

    One way to do it...


    1) Make a script file (test):
    Code:
    #!/bin/sh
    
    konsole --hold -e ls -l
    2) Make it executable
    Right click the script file > Properties > Permissions-tab


    3) Drag&Drop it to the desktop



    Executing things with the konsole window:

    konsole --help
    Usage: konsole [Qt-options] [KDE-options] [options] [args]

    Terminal emulator

    Generic options:
    --help Show help about options
    --help-qt Show Qt specific options
    --help-kde Show KDE specific options
    --help-all Show all options
    --author Show author information
    -v, --version Show version information
    --license Show license information
    -- End of options

    Options:
    --profile <file> Name of profile to use for new Konsole instance
    --list-profiles List the available profiles
    --background-mode Start Konsole in the background and bring to the front when the F12 key is pressed
    --new-tab Create a new tab in an existing window rather than creating a new window
    --workdir <dir> Set the initial working directory of the new tab or window to 'dir'
    --notransparency Disable transparent backgrounds, even if the system supports them.
    --force-transparency Try to enable transparency, even if the system does not appear to support it.
    --hold, --noclose Do not close the initial session automatically when it ends.
    -p <property=value> Change the value of a profile property.
    -e <cmd> Command to execute

    Arguments:
    args Arguments passed to command
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Re: How to add script to desktop?

      Aaaah. I didn't use extension.

      "test" works in console only, "test.sh" works correct in graphics.
      Thanx.

      Comment

      Working...
      X