linux 下 將 shell script 與 一個案頭表徵圖聯絡在一起

來源:互聯網
上載者:User
Ihttp://forum.soft32.com/linux2/Run-shell-script-desktop-icon-ftopict51996.html am using KDE as my user interface. How can I create a shortcut icon
on the desktop that will run a shell script in a shell window?

I want to be able to click an icon on the destop and have it open a
shell window and start running a shell script.

Thanks,

Back to top


Login to vote

Michael Heiming

External

Since: Aug 19, 2003
Posts: 2577

(Msg. 2) Posted: Thu Oct 05, 2006 5:29 am
Post subject: Re: Run shell script from desktop icon [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In comp.os.linux.setup Ch <ChrisDLWork06 DeleteThis @gmail.com>:
> I am using KDE as my user interface. How can I create a shortcut icon
> on the desktop that will run a shell script in a shell window?

> I want to be able to click an icon on the destop and have it open a
> shell window and start running a shell script.

Well, right click somewhere on the empty desktop.

Create New ->

Link to Application
Application
(Enter Command Ie. "~/bin/my_script.sh")
Advanced Options
[x] Run in terminal

I wonder that you couldn't figure this out just from clicking
around?

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry DeleteThis @urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 117: the printer thinks its a router.

Back to top


Login to vote

marijuanated

External

Since: Oct 04, 2006
Posts: 14

(Msg. 3) Posted: Thu Oct 05, 2006 10:51 pm
Post subject: Re: Run shell script from desktop icon [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)
You can also do this:

right click somewhere on the empty desktop

Create New ->

Link to Application
Application
(Enter Command Ie. "xterm -e -hold ~/bin/my_script.sh")

If you want the xterm to hold till the script is done running.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.