Announcement

Collapse
No announcement yet.

Desktop program starter

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

    Desktop program starter

    I am currently on Kubuntu 8.04.

    On my desktop I have a Konsole icon with the properties
    Command: konsole --vt_sz 200x50 -e python ~/mypath/myprog.py
    Workpath: ~/mypath

    One mouse click gets me a terminal window and in that terminal window is immediately started python, using mypath and executing myprog.py.



    I have installed the Kubuntu 9.04 beta but I don't understand the way the desktop works.

    Please, someone, teach me how to create a something and put it on my screen where one mouse click will then get me a terminal window immediately running the python interpreter on myprog.py

    I know how to start a plain terminal window and I can type
    $ cd ~/myprog
    $ python myprog.py
    but what I want is the one-click solution I have in 8.04

    /ingemar


    #2
    Re: Desktop program starter

    The only way I can think of under kde4.2 (at least for now) is:
    rightclick kmenu->menueditor->add new item->name and erdit to your needs->save.

    Now open up kmenu(kickoff) / lancelot and find the item you just created.

    Drag / drop to desktop / panel as needed.

    I hope this helps.
    HP Pavilion dv6 core i7 (Main)
    4 GB Ram
    Kubuntu 18.10

    Comment


      #3
      Re: Desktop program starter

      Another way to do it

      Go to the /home/<Your_username>/Desktop

      Make a text file (seed.desktop):

      [Desktop Entry]
      Categories=;
      Exec=
      GenericName=Important_note
      Name=Note Me
      X-KDE-StartupNotify=true
      MimeType=
      Icon=
      Terminal=false
      Type=Application
      Drag&Drop the seed.desktop to the desktop

      Right click the new icon > Icon Settings >

      General - tab
      - Icon settings
      - Name settings

      Application - tab
      - command
      - work path


      Earlier > Topic: Files on Desktop
      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


        #4
        Re: Desktop program starter

        Thank you both!
        It did not work right away but you inspired me.
        When keeping the '--vt_sz 200x50' parameter to konsole like
        I had in the Kubuntu 8.04 installation nothing would work.
        After I removed that, konsole, python and my program would start
        like i wanted.

        [Desktop Entry]
        Categories=;
        Comment[sv]=
        Comment=
        Exec=konsole -e python /home/ingemar/FILSERVERN/ingemarfiler/Programmering/Linuxprojekt/johan/source/johan.py
        GenericName[sv]=Important_note
        GenericName=Important_note
        Icon=konsole
        MimeType=
        Name[sv]=johan
        Name=johan
        Path=/home/ingemar/FILSERVERN/ingemarfiler/Programmering/Linuxprojekt/johan/source
        StartupNotify=true
        Terminal=false
        TerminalOptions=
        Type=Application
        X-DBUS-ServiceName=
        X-DBUS-StartupType=
        X-KDE-StartupNotify=true
        X-KDE-SubstituteUID=false
        X-KDE-Username=

        However, my main program, johan.py, has code to start a number of other python routines
        in the same folder. All I get now are messages that the programs cannot be found.

        The python code works well in 8.04 - and also in 9.04 when I hand-start a konsole
        window and then CD to the folder and type
        $ python johan.py

        So I guess some code in 9.04 is not handling the Path parameter of the desktop file.

        /ingemar

        Comment

        Working...
        X