LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Shortcut to Desktop? (https://www.linuxquestions.org/questions/linux-software-2/shortcut-to-desktop-98349/)

Gerardoj 09-29-2003 04:13 PM

Shortcut to Desktop?
 
Hi, I would like to know how can I add a shortcut of Python to my desktop? now Im running Slackware 9.0, I tried with the command "Python" in the New Luncher menu but doesnt works.

Thanks.

Mega Man X 09-29-2003 04:23 PM

Which desktop are you in?. If it's KDE, simply right click at the desktop >> create new >> Link to application.

There you place a name to your program, let's say python, then at the tab execute, type python and mark the box "Run in Terminal".

The idea is to create a link to a terminal where it will start running the command python. Python is command line, so you've to start python in a terminal, always.
Although, may I ask what you are going to do with python shortcut? :). Running Python from the terminal is not useful and very limited. It's simply for testing basic commands as print and stuff. To code in Python, you have to create a simple text file, save as .py (eg: your_program.py) and then run from the terminal with python as:

python your_program.py

Well, good luck :)

Gerardoj 09-29-2003 04:27 PM

The problem was that I dont marked the box "Run in Terminal".l, now is working fine.

Thanks A lot.

Mega Man X 09-29-2003 04:29 PM

Cool, no problems :)


All times are GMT -5. The time now is 10:55 AM.