Re: FVWM: Screenshot done from MenuItem

From: calmar <mac_at_calmar.ws>
Date: Thu, 26 Feb 2004 06:49:21 +0100

Ben Winslow <rain_at_bluecherry.net> writes:

Hi Ben,

> On Wed, 2004-02-25 at 14:06, calmar wrote:
>> Anyway, when I want to put about the same into a Menu, it
>> obviously does not work at all then. P.e:
>>
>> DestroyMenu testmenu
>> AddToMenu testmenu
>> + "screenshot" Exec exec sleep 3 && import -window root ~/pics/screenshots/sc-`date +%F-%H-%M-%S`.jpg
> ^^^^^^^^^^
> Your doubled exec causes fvwm to pass 'exec sleep 3' to the shell.
> 'exec' in a shell replaces the shell task with the new one, so the shell
> goes away after running sleep.

I see...
I thought I always have to use Exec exec, and I have this
everywhere too. Obviously fvwm transfers everything after
the (first) Exec to the shell.

It works now nicely, thanks

marco


-- 
  calmar 
           (o_         GNU/Linux is GREAT      
           //\                 
           V_/_        http://www.calmar.ws 
                                          
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Feb 25 2004 - 23:51:10 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST