1833788 Members
2507 Online
110063 Solutions
New Discussion

Re: Script with icon

 
selvagia
New Member

Script with icon

Hi, I've made an script executable,an installer, and I want to customize with an embbeded icon, how can I associate an icon to my script?
Thanks
1 REPLY 1
Mike Stroyan
Honored Contributor

Re: Script with icon

I will assume that you are talking about a CDE action icon. To create an icon for yourself, you just need to run /usr/dt/bin/dtcreate. It lets you select an Action name, pick an icon or draw your own, and select what command or script to run when the icon is clicked on.

If you want to create icons that are available for all users then it gets more interesting.
It is something that is normally done by an application installer. You say that your script is an installer, so there may be a bootstrap problem here. You can read about the mechanisms for integrating applications with CDE in "Common desktop Environment Advanced User's and System Administrator's Guide" at
http://www.docs.hp.com./hpux/onlinedocs/B1171-90102/B1171-90102.html
and in "Common Desktop Environment: Programmer's Guide" at
http://www.docs.hp.com./hpux/onlinedocs/B1171-90153/B1171-90153.html
There is a dtappintegrate command that will read and configure new CDE icons, data types, and actions for an application which defines those.