Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[MiNT] Réf. : [MiNT] Runtime AES application name change?

2 views
Skip to first unread message

Patrick PROKOPOWICZ

unread,
Feb 13, 2003, 7:25:40 AM2/13/03
to

and another step :
I need a way for obtain the complete path of a running app (more spécially
the desktop).

my idea is to obtain the name with appl_search (desktop=type
application+shell), and to scan
the discs for searching the path...

is someone having a better way ?

Patrick,


Frank Naumann

unread,
Feb 13, 2003, 7:52:18 AM2/13/03
to
Hello!

> and another step :
> I need a way for obtain the complete path of a running app (more spécially
> the desktop).
>

> is someone having a better way ?

cd /kern/<pid>/cwd
/bin/pwd

You can do this also with systemcalls from an application for sure :-)


Tschuess
...Frank

--
ATARI FALCON 040 // MILAN 060
-----------------------------------------
http://www.cs.uni-magdeburg.de/~fnaumann/
e-Mail: fnau...@freemint.de

Andreas Bär

unread,
Feb 13, 2003, 8:35:37 AM2/13/03
to
Patrick PROKOPOWICZ schrieb:
You could do a Fcntl(fd,&info,PLOADINFO)

--- dcntl.h ---
struct ploadinfo
{
/* passed */
unsigned short fnamelen;

/* returned */
char *cmdlin /* 128 byte */, *fname;
};
--- dcntl.h ---

Bye,
Andi

Frank Naumann

unread,
Feb 13, 2003, 8:41:51 AM2/13/03
to
Hello!

> > is someone having a better way ?
> You could do a Fcntl(fd,&info,PLOADINFO)
>
> --- dcntl.h ---
> struct ploadinfo
> {
> /* passed */
> unsigned short fnamelen;
>
> /* returned */
> char *cmdlin /* 128 byte */, *fname;
> };
> --- dcntl.h ---

It's recommended to use /kern/<pid>/cmdline instead. There is also no 128
byte limit for that.

Andreas Bär

unread,
Feb 13, 2003, 9:18:04 AM2/13/03
to
Hi,

> It's recommended to use /kern/<pid>/cmdline instead. There is also no 128
> byte limit for that.

OK!

Ciao,
Andi

0 new messages