Find the answer to your Linux question:
Results 1 to 3 of 3
Hi folks, Ubuntu 10.04 How to create a short-cut starting a program. Each time I have to perform follow on terminal:- $ cd /home/satimis/RedR/usr/lib/python2.6/dist-packages/Red-R/canvas/ $ python red-RCanvas.pyw Please advise. TIA ...
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546

    About creating a shortcut

    Hi folks,


    Ubuntu 10.04

    How to create a short-cut starting a program.


    Each time I have to perform follow on terminal:-

    $ cd /home/satimis/RedR/usr/lib/python2.6/dist-packages/Red-R/canvas/
    $ python red-RCanvas.pyw

    Please advise. TIA


    B.R.
    satimis

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    Location
    Italy
    Posts
    35
    Quote Originally Posted by satimis View Post
    Hi folks,


    Ubuntu 10.04

    How to create a short-cut starting a program.


    Each time I have to perform follow on terminal:-

    $ cd /home/satimis/RedR/usr/lib/python2.6/dist-packages/Red-R/canvas/
    $ python red-RCanvas.pyw

    Please advise. TIA


    B.R.
    satimis
    Do you means a short-cut for terminal or for desktop ?
    On terminal create (or edit) the file ~/.bash_aliases and add

    MyAlias='cd /home/satimis/RedR/usr/lib/python2.6/dist-packages/Red-R/canvas/;python red-RCanvas.pyw'

    After that you have to log out and in again to load that environment, or simply do (on terminal) #source .bashrc

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546
    Quote Originally Posted by linuxaria View Post
    Do you means a short-cut for terminal or for desktop ?
    On terminal create (or edit) the file ~/.bash_aliases and add

    MyAlias='cd /home/satimis/RedR/usr/lib/python2.6/dist-packages/Red-R/canvas/;python red-RCanvas.pyw'

    After that you have to log out and in again to load that environment, or simply do (on terminal) #source .bashrc
    Hi,

    On desktop. Thanks

    Edit:

    I got it done.

    On desktop
    Right click -> Create Launcher etc. Thanks

    B.R.
    satimis
    Last edited by satimis; 08-19-2010 at 01:11 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...