PWM_PRINTSCRN_APP

Hello,

I want to start MyApp utility when user press Print Scrn key.
I this case I made export PWM_PRINTSCRN_APP=MyApp and then I start
photon, but when I press PrinScrn always is start snapshot utility.
I use QNX 6.2.1 and QNX 6.3.0 (without service pack). When I see the
environment variables (pidin -f NE )processes “pwm” and “snapshot” have
PWM_PRINTSCRN_APP variable in list.

What I made wrong ?

Thanks
Marian.

Superuser wrote:

I want to start MyApp utility when user press Print Scrn key.
I this case I made export PWM_PRINTSCRN_APP=MyApp and then I start
photon, but when I press PrinScrn always is start snapshot utility.
I use QNX 6.2.1 and QNX 6.3.0 (without service pack). When I see the
environment variables (pidin -f NE )processes “pwm” and “snapshot” have
PWM_PRINTSCRN_APP variable in list.

What I made wrong ?

Nothing. It seems to have been broken for a very long time. I’ll post
an official bug report.

As a workaround, you can rename your application to “snapshot” (or
create a shell script) and put it somewhere on the $PATH ahead of
/usr/photon/bin.

Wojtek Lerch wrote:

Superuser wrote:

I want to start MyApp utility when user press Print Scrn key.
I this case I made export PWM_PRINTSCRN_APP=MyApp and then I start
photon, but when I press PrinScrn always is start snapshot utility.
I use QNX 6.2.1 and QNX 6.3.0 (without service pack). When I see the
environment variables (pidin -f NE )processes “pwm” and “snapshot”
have PWM_PRINTSCRN_APP variable in list.

What I made wrong ?


Nothing. It seems to have been broken for a very long time. I’ll post
an official bug report.

As a workaround, you can rename your application to “snapshot” (or
create a shell script) and put it somewhere on the $PATH ahead of
/usr/photon/bin.

Hello Wojtek,

thanks for answer and good tip

Marian.