photon file manager (pfm)

I tried to spawn"pfm" from my application with a particualr width and
height. But when I type, pfm -h200 -w 300 , it doesn’t adjust the height
and width to these dimensions. In fact, even if I start “pfm” from a
terminal window with the same dimensions, it doesn’t open it with the
mentioned height and width.

I appreciate your suggestions.

Shashank

Shashank wrote:

I tried to spawn"pfm" from my application with a particualr width and
height. But when I type, pfm -h200 -w 300 , it doesn’t adjust the height
and width to these dimensions. In fact, even if I start “pfm” from a
terminal window with the same dimensions, it doesn’t open it with the
mentioned height and width.

What version of the OS? It seems to work for me on 6.3sp2, except pfm
has a rather large minimum size (around 600x300 pixels).

I am using QNX4.2. I tried using a size of (875*400) and it didn’t make a
difference.

Shashank




“Wojtek Lerch” <Wojtek_L@yahoo.ca> wrote in message
news:dl35c5$ccr$1@inn.qnx.com

Shashank wrote:
I tried to spawn"pfm" from my application with a particualr width and
height. But when I type, pfm -h200 -w 300 , it doesn’t adjust the
height
and width to these dimensions. In fact, even if I start “pfm” from a
terminal window with the same dimensions, it doesn’t open it with the
mentioned height and width.

What version of the OS? It seems to work for me on 6.3sp2, except pfm
has a rather large minimum size (around 600x300 pixels).

I am using QNX 4.2 and am opening pfm with a width of 875 and a height of
400 and yet it doesn’t set the width and the height.

Shashank


“Shashank” <sbalijepalli@precitech.com> wrote in message
news:dl33ol$m9a$7@inn.qnx.com

I tried to spawn"pfm" from my application with a particualr width and
height. But when I type, pfm -h200 -w 300 , it doesn’t adjust the height
and width to these dimensions. In fact, even if I start “pfm” from a
terminal window with the same dimensions, it doesn’t open it with the
mentioned height and width.

I appreciate your suggestions.

Shashank

\

Shashank wrote:

I am using QNX4.2. I tried using a size of (875*400) and it didn’t make a
difference.

Ah, QNX4… Yeah, you’re right… It seems that pwm applies the size
that was saved to its config file, without paying attention to its
command-line arguments.

This is fixed in QNX 6. :wink:

If you’re looking for a workaround, you’ll need to write the size to the
config file. In Photon 1.14, the height and width of the window are
saved as two four-byte little-endian ints at offset 1412 of the
1432-byte file $HOME/.photon/pfm/config:

struct { int h, w; } newsize = { HEIGHT, WIDTH };
int fd = open( “/home/me/.photon/pfm/config”, O_WRONLY );
lseek( fd, 1412, SEEK_SET );
write( fd, &newsize, sizeof(newsize) );
close( fd );
system( “pfm &” );

Thanks Wojtek.

As an aside-

I was wondering if pfm has drag and drop capabilities to copy files from one
folder to the other. I see that the only way to copy files is using the ‘F6’
key that brings up a dialog window in which you have to type in the
destination.

I appreciate your suggestions.

Shashank




“Wojtek Lerch” <Wojtek_L@yahoo.ca> wrote in message
news:dlasul$2jl$2@inn.qnx.com

Shashank wrote:
I am using QNX4.2. I tried using a size of (875*400) and it didn’t make
a
difference.

Ah, QNX4… Yeah, you’re right… It seems that pwm applies the size
that was saved to its config file, without paying attention to its
command-line arguments.

This is fixed in QNX 6. > :wink:

If you’re looking for a workaround, you’ll need to write the size to the
config file. In Photon 1.14, the height and width of the window are
saved as two four-byte little-endian ints at offset 1412 of the
1432-byte file $HOME/.photon/pfm/config:

struct { int h, w; } newsize = { HEIGHT, WIDTH };
int fd = open( “/home/me/.photon/pfm/config”, O_WRONLY );
lseek( fd, 1412, SEEK_SET );
write( fd, &newsize, sizeof(newsize) );
close( fd );
system( “pfm &” );

Shashank wrote:

I was wondering if pfm has drag and drop capabilities to copy files from one
folder to the other. I see that the only way to copy files is using the ‘F6’
key that brings up a dialog window in which you have to type in the
destination.

There’s no drag and drop in Photon 1.14.