On Sat, 25 Feb 2006 10:19:12 +0900 (JST) Yasufumi Haga <[EMAIL PROTECTED]> babbled:
> Hi all > > I have two icons to start "emacs" and "emacs -e mew" respectively > in my e17 environment. These icons work perfectly and each of them > is correctly shown at the top-left corner of the window in one theme. > But when I change a theme, say from default to Cthulhain, those > icons at the top-left corners change to a different one which is > not either one above, and the icons become undefined. The menu shown > by clicking right button on a title bar has the entry "Create Icon", > not "Edit Icon". > I created those icons by directly using .edc file because it seems > that EAP editor accept "emacs", but not "emacs -e mew" as a command. > I tried the other icons such as Eterm and xchat, but this problem > doesn't happen. Here are the scripts to create them. This script > was included in the early E17 user guide. e tries to match icons in many ways. if e executes the process it knows (and tracks) the PID etc. - if your restart it loses this tracking info. when it figures out what icon to use, it first tries to match the app via any launch Id or then PID property it has - if any, and match that to an execution instance, which is linked to an eap icon, and thus it uses that icon. if this doesn't work, it falls back to name/class matching according to the eap win name/class properites > (for Emacs) > #!/bin/sh > > # a .eap file is just a .edj file with added meta data for application launch > # info. enlightenment_eapp can add/modify/delete this metadata. the script > # below is an example of building an eap icon from scratch. > > # actually compile a edje file with all the gfx etc. > edje_cc $@ -id . -fd . Emacs.edc Emacs.eap > > # add eapp properties to the file - they are ALL optional EXCEPT name and exe > # and exe is optional for directory .eapp files > enlightenment_eapp \ > Emacs.eap \ > -set-name "Emacs" \ > -set-generic "Emacs" \ > -set-comment "" \ > -set-exe "emacs" \ > -set-win-name "Emacs" \ > -set-win-class "Emacs" \ > -set-icon-class "" > > # other options u might want to use: > # -lang LANG > # -set-startup-notify 1/0 \ > # -set-win-title "window_title*glob" \ > # -set-win-role "window_role" \ > # -set-wait-exit 1/0 \ > # > # see enlightenment_eapp -h for more -set options > > (for Emacs -e mew) > "mew.sh is a shell script which includes the lines below: > emacs -e mew > exit > > #!/bin/sh > > # a .eap file is just a .edj file with added meta data for application launch > # info. enlightenment_eapp can add/modify/delete this metadata. the script > # below is an example of building an eap icon from scratch. > > # actually compile a edje file with all the gfx etc. > edje_cc $@ -id . -fd . Mew.edc Mew.eap > > # add eapp properties to the file - they are ALL optional EXCEPT name and exe > # and exe is optional for directory .eapp files > enlightenment_eapp \ > Mew.eap \ > -set-name "mew.sh" \ > -set-generic "mew" \ > -set-comment "" \ > -set-exe "mew.sh" \ > -set-win-name "Mew" \ > -set-win-class "Emacs" \ > -set-icon-class "" > > # other options u might want to use: > # -lang LANG > # -set-startup-notify 1/0 \ > # -set-win-title "window_title*glob" \ > # -set-win-role "window_role" \ > # -set-wait-exit 1/0 \ > # > # see enlightenment_eapp -h for more -set options > > Any help is apprciated. > Regards. > > > --- > Yasufumi Haga [EMAIL PROTECTED] > http://homepage3.nifty.com/peterpan/ > fingerprint:0EFA 299A BC32 7D68 1FEF BA2B 804E 9B15 C4F0 F9F0 > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-users
