On Tue, 11 Jul 2006 14:33:22 -0300 "Fernando Gerent" <[EMAIL PROTECTED]>
babbled:

not so easy. for example - on debian firefox is a script - that does soem setup
then exec's firebox-bin. so you execute "firefox" as your application and what
is the process name you end up with? "firefox-bin"!!!. a prominent example of
how hackery would break down here. now other programs often do similar things -
you run prog X but the ui is actually from a child process with a different
name - and *IF* the app is nice enough to provide a app command property on the
window (*IF*) the command is the child process name, not the parent you
executed. *IF the app is nice enough to provide a pid property - then the pid
is not the pid you launched. it's a minefield to map an arbitrary command
string to an actual window - it's not reliable and it's fraught with "it wont
work for app X or app Y" exceptions. at this stage with e i don't want to  be
putting in unreliable hacks like this before a lot of other core features and
code are done and solidified. i hope you understand the position that a solid
base is more important than this.

> Would I need both the pid and the process name?
> Cause the process name wouldn't be much of a problem, just a question of
> trial and error, for those apps that launch multiple processes.
> Also, maybe I wasn't clear enough, but I'm planning on creating one script
> for each app, not a global script that does it all by itself, all I need is
> the signal that is used, so I can do "focus on firefox" on the firefox
> script, "focus on thunderbird" on the thunderbird script, etc..., not a
> general "focus on $pid".
> 
> On 7/11/06, Jesse Luehrs <[EMAIL PROTECTED]> wrote:
> >
> > ---- Original message ----
> > >Date: Tue, 11 Jul 2006 13:27:43 -0300
> > >From: "Fernando Gerent" <[EMAIL PROTECTED]>
> > >Subject: Re: [e-users] E17 Feature request - keybindings
> > >To: Josh <[EMAIL PROTECTED]>
> > >Cc: enlightenment-users@lists.sourceforge.net
> > >
> > >   I was just thinking about that.
> > >   It kind of complements this other thing I've been
> > >   planning to do, that's storing my app preferences,
> > >   whenever possible, on scripts, using the command
> > >   arguments, instead of editing the config files. This
> > >   makes it much easier to restore them in a reinstall,
> > >   and overrides any global config file that may be
> > >   changed in an upgrade.
> > >   I just have no idea how I can check if a program is
> > >   running, althought I'm pretty sure it can be done.
> >
> > ps w -eo 'comm' | grep -qE "^${PROGNAME}$"
> >
> > that will return successfully if ${PROGNAME} is running and
> > with a failure code if it is not (no guarantees on the
> > portability of that... I know it works on Linux).
> >
> > >   As for the focus, it's probably possible, maybe I
> > >   can use the signal used by "mouse click on window
> > >   title" or "Alt+Tab" to bring up the program. Maybe
> > >   someone around here could help me find exactly what
> > >   it is.
> >
> > The problem isn't in sending the signal... that would be
> > fairly trivial (as you mentioned, clicks and alt+tab do it
> > already). The really difficult part is figuring out which
> > windows go with which pids/process names.
> >
> > >   Thanks everyone for the replies so far.
> > >
> > >   Fernando
> >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > enlightenment-users mailing list
> > enlightenment-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> >
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to