LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2006, 05:11 AM   #1
yozhhh
LQ Newbie
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.1
Posts: 26

Rep: Reputation: 15
FVWM: graceful exit


Command "Quit" exits from FVWM. If any X Application has unsaved data, this data will be lost. How to change this behaviour? I would like that FVWM tries at first to close all opened windows and waits until all applications store unsaved data (incl. using the "Save data or not?"-application-specific-dialogs). Is it possible? I tried

DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I All Close
+ I Quit

but "All Close" does not wait for the correct closing of all applications and returns immediately; afterthat "Quit" exits from FVWM and X. Application data is not saved...
Is there a way to check after "All Close" that all apps/windows are really closed and then execute "Quit" (or wait otherwise)?
 
Old 01-17-2006, 07:56 AM   #2
yozhhh
LQ Newbie
 
Registered: Aug 2004
Location: Germany
Distribution: Slackware 10.1
Posts: 26

Original Poster
Rep: Reputation: 15
OK, i found the answer:

DestroyFunc FuncFvwmExit
AddToFunc FuncFvwmExit
+ I All Close
+ I FuncFvwmWaitExit

DestroyFunc FuncFvwmWaitExit
AddToFunc FuncFvwmWaitExit
+ I All Nop
+ I TestRc (NoMatch) Quit
+ I Schedule 500 FuncFvwmWaitExit

Thanx to anonymous from http://www.linux.org.ru/view-message.jsp?msgid=1231195
 
  


Reply



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
difference between exit 1 and exit kushalkoolwal Programming 6 10-20-2005 03:56 PM
clock not working in fvwm with fvwm-crystal hedpe Linux - Software 0 09-13-2005 08:04 PM
help in fvwm SciYro Linux - Software 0 03-24-2005 06:14 AM
2 fvwm processes with 2 displays, only want one fvwm enzo250gto Linux - Software 0 01-27-2005 04:50 PM
Graceful shutdown.. howto? rohan208 Linux - General 5 05-16-2004 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration