LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 04-27-2007, 03:15 PM   #1
ajoffe
LQ Newbie
 
Registered: Jan 2007
Location: USA
Distribution: N/A
Posts: 4

Rep: Reputation: 0
Question fvwm2: show an FvwmForm after application launched from menu is closed


Hi,

I've created the following fvwm2 menu for window manager operations:

Code:
# Window manager operations
AddToMenu "WindowManager" "Window Manager" Title
+ "Edit config" Exec exec xterm -e nano $HOME/.fvwm/.fvwm2rc &
+ "" Nop
+ "Restart fvwm2" Restart fvwm2
On the "Edit config" line, after the nano instance showing the .fvwm2rc config file is closed, I would then like to display an FvwmForm asking the user whether to restart fvwm2, so that any changes will be applied (I've already defined the form elsewhere in my fvwm2rc). What is the syntax for showing a form after an application (in this case, nano running in xterm) is closed?

Thanks!
 
Old 04-29-2007, 02:37 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I'm near to an fvwm zealot but I still don't know much about it and would do things like this with {gtk,x,c}dialog or {g,}xmessage, anyway. It's perfectly simple and straightforward that way. Maybe it is with FvwmForms but I find them awkward and klunky. I can't figure the synchronization of a non-fvwm term/editor and the fvwm module of the FvwmForm. so the following sucks, but...

Make sure FvwmCommandS is started in your StartFunction, and then add
Code:
+ "Demo" Exec exec bash -c 'mrxvt -e vim && FvwmCommand "Module FvwmForm FvwmForm-Form"'
to your menu. (Make that 'xterm' and 'nano' and whatever your form is.) Dunno what weirdness fvwm is doing when it passes the remainder of the line to the shell but that seems to do it. If that's too weird, maybe write a one-line script like
Code:
#!/bin/sh
mrxvt -e vim && FvwmCommand "Module FvwmForm FvwmForm-Form"
Then add
Code:
+ "Title" Exec exec /path/to/script
to your menu and it might work.

Also, you should almost never need to restart fvwm - just
Code:
+ "&Reconfigure" Read config
should suffice.

Anyway - if that won't do and nobody else jumps in here, try #fvwm on freenode or the fvwm mailing list.
 
  


Reply

Tags
config, menu, restart, xterm, fvwm, nano


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you get a KDE .desktop file to show in menu? RavenLX Mandriva 5 05-17-2006 01:51 PM
How to add a windows application launched by wine to the menu? lnthai2002 Linux - Software 3 02-12-2006 01:23 PM
How to show a variable menu list in Kdialog? linx win Debian 1 11-26-2005 10:33 AM
ID games : no sound when launched from gnome app. menu Lagg Slackware 4 03-14-2005 07:56 AM
Why does ps -A show several instances of the same application? davidas Debian 2 04-19-2004 10:53 PM


All times are GMT -5. The time now is 09:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration