Terminator - Prompt if a process is active before closing window

HI. As the title says: I want to get a prompt in Terminator (a terminal emulator) if I accidentally try to close its window while a process is active inside it. Eg.: If I have vim open inside terminator, and I carelessly press the window manager's close button, I want a prompt asking for confirmation.
Now there was a sane default by which it automatically showed such a prompt, but I (quite stupidly) told it to never prompt me again. Later I wanted it back. But I couldn't find where or how I could change that preference. I have tried going through its "Preferences" gui and also searched its default config file:
~/.config/terminator/config
but I have had no luck. I have also checked DConf Editor by searching for 'term', 'terminal' and 'terminator'. Again no luck.
I was hoping someone here could tell me how I could fix it. Currently I have resorted to running a screen session, so that I don't lose my work. But I hope I can get that prompt back.
Thank you.
Last edited by richcocoa (2013-10-14 08:29:31)

It's possible to obtain this prompt when trying to close multiple tabs / terminals / windows. I've made some modifications to my /usr/share/terminator/terminatorlib/container.py based on the Launchpad version. The construct_confirm_close function makes it possible:
def construct_confirm_close(self, window, reqtype):
"""Create a confirmation dialog for closing things"""
# skip this dialog if applicable
if self.config['suppress_multiple_term_dialog']:
return gtk.RESPONSE_ACCEPT
dialog = gtk.Dialog(_('Close?'), window, gtk.DIALOG_MODAL)
dialog.set_has_separator(False)
dialog.set_resizable(False)
dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT)
c_all = dialog.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT)
c_all.get_children()[0].get_children()[0].get_children()[1].set_label(
_('Close _Terminals'))
primary = gtk.Label(_('<big><b>Close multiple terminals?</b></big>'))
primary.set_use_markup(True)
primary.set_alignment(0, 0.5)
secondary = gtk.Label(_('This %s has several terminals open. Closing \
the %s will also close all terminals within it.') % (reqtype, reqtype))
secondary.set_line_wrap(True)
labels = gtk.VBox()
labels.pack_start(primary, False, False, 6)
labels.pack_start(secondary, False, False, 6)
image = gtk.image_new_from_stock(gtk.STOCK_DIALOG_WARNING,
gtk.ICON_SIZE_DIALOG)
image.set_alignment(0.5, 0)
box = gtk.HBox()
box.pack_start(image, False, False, 6)
box.pack_start(labels, False, False, 6)
dialog.vbox.pack_start(box, False, False, 12)
checkbox = gtk.CheckButton(_("Do not show this message next time"))
dialog.vbox.pack_end(checkbox)
dialog.show_all()
result = dialog.run()
# set configuration
self.config.base.reload()
self.config['suppress_multiple_term_dialog'] = checkbox.get_active()
self.config.save()
dialog.destroy()
return(result)
Paired with suppress_multiple_term_dialog in your ~/.config/terminator/config:
[global_config]
suppress_multiple_term_dialog = False
Most I could find at this time in the morning.

Similar Messages

  • Opening a prompt window before closing window when click on the x box

    I was wondering if there was a way to have a prompt box asking the user if they're sure they want to close the window before closing it when the x button is clicked. Is this possible? Does anyone know how?

    Or simply override:
        /** Overridde method in JFrame */
        protected void processWindowEvent(WindowEvent e)
            if(e.getID()==WindowEvent.WINDOW_CLOSING)
                int choice = JOptionPane.showConfirmDialog( null, "Are you e?" );     
                if( choice == JOptionPane.OK_OPTION )
                    System.exit(0);
            super.processWindowEvent(e);
        }

  • Phone turned off and said activation required, I followed prompts and nothing! Says activation server unavailable....

    Phone turned off and said activation required, I followed prompts and nothing! Says activation server unavailable....

    Same thing happened to me.  Was using my iPhone 5 and suddenly it went into "Activation" mode and now won't activate.  Was in the process of replying to an important SMS text message and now I can't even call the person!!

  • How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    It would seem if your choose "Show my windows and tabs from last time" '''''and''''',
    *when you last closed Firefox, you had no web site open (just a blank tab), that it would open just that blank tab
    *when you last closed Firefox, you had one or more tabs/web site open, that would allow you to "Restore Previous Session"
    #Have you tried that?
    #If so, what is happening in each circumstance when you reopen Firefox?
    '''Restore Previous Session'''<br />
    Open tabs are automatically saved when closing Firefox beginning in Firefox 4. To open your last session, after Firefox starts, click History > Restore Previous Session. For this to work
    #You must be remembering history (Options > Privacy > Remember my browsing history).
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    #You must not be using Private Browsing or permanent Private Browsing
    #*See [https://support.mozilla.com/en-US/kb/Private%20Browsing Private Browsing]
    #You must not use Clear Recent History or Clear history when Firefox closes
    #*See [https://support.mozilla.com/en-US/kb/Clear%20Recent%20History Clear Recent History]
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • When a process flow activity takes a long time to run.

    Hello,
    I have a process flow activity that sometimes takes a long time to run so that the process flow never ends. Is it possible that I can set the activity so that during a certain time that this has not been executed automatically flow process to continue?
    I'm Using Oracle Warehouse Builder 11g on Windows Server 2003 R1.
    Greetings and thanks.

    What I've done in the past is just use a small polling procedure (PL/SQL) and a conditional transition in the process flow, depending on what the proc returns (Continue or Fail) then the flow of control in the Process is changed.
    I think the key also is to not have too much paralellism going on too, that way it's easy to streamline the PF and remove slow moving processes to a more linear path (stopping bottle necks on your logical AND).
    Edited by: NSNO on Apr 29, 2010 2:31 PM

  • I have CS2 and I use it almost every day.. Today when I tried to launch it, a prompt came up saying my Activation was no longer valid and it closed automatically.  Then when I tried to re-open it, a prompt came up saying "A serious error has occured"  Ple

    I have CS2 and I use it almost every day.. Today when I tried to launch it, a prompt came up saying my Activation was no longer valid and it closed automatically.  Then when I tried to re-open it, a prompt came up saying "A serious error has occured"  Please re-install the software...  I have no idea where my software is... That was many many years ago?  HELP!!

    When you go to the download page, you must do two things:
    Download this file: PhSp_CS2_English.exe on the download page.
    Use the serial number on the download page in order to install your non-activation copy.
    Do not use your old CD or serial number. It no longer works.
    If you have Windows 7, the advice is to turn off UAC and run the installer as Administrator.
    Gene

  • How to get the package name of a procedure used in a process flow activity

    Hi all. I'm on OWB 11.2.0.2.0.
    When I used a packaged procedure or function in a mapping operator, I can find out the package.program_unit name by getting the operator's FUNCTION_NAME property. For example,
    OMBRETRIEVE MAPPING '$mapName' OPERATOR '$operName' GET PROPERTIES (FUNCTION_NAME)
    But when the same is used in a process flow activity, I can't find a property name that will give me the same information. I can get the BOUND_NAME, it does not tell me the package name. It must be stored in the activity properties because when you pull up the Synchronize dialog for the activity, it knows the package name.
    Is there a way to get this via an OMBRETRIEVE?
    Thanks.

    ANA, this is exactly what I needed. Thank you so much. I saw REFs also in the OMBRETRIEVE MAPPING/OPERATOR syntax, but went cross-eyed trying to figure out if I could use the same there. The closest I found was GET BOUND_OBJECT.
    Thanks again!

  • BPM process interactive activity(JSP) - external webservice method interac

    I am using Oracle BPM studio 10.3.1.0.
    I have one external web service published on glassfish application server, I have introspected it in my BPM process using its WSDL.
    Now one of my BPM process interactive activity is there, which is represented by one JSP, I am giving some input to my JSP.
    I want this input to be passed to the web service method as a parameter, and it should fetch the output, so basically I want to invoke the web service method, could you please guide me how to do it?
    Thanks & Regards
    Ashish

    Hy Ashih
    I dont know if this is best way to do that, but I have a similar situation here, and I'm using AJAX do call the webservice method by BPM and retrieve data.
    Something like this:
    1 - Create the XMLHttpRequest() object in your jsp (if you need I have the entire code)
    2 - Create the a JavaScript method for to call the OBPM method in your component
    function mymethod(arg1, arg2, arg3)
    xmlhttp.onreadystatechange=function()
                                                      if( xmlhttp.readyState==4 )
                                                           document.getElementById("AnyDIV").innerHTML = xmlhttp.responseText;
         var resp = "<f:invokeUrl var='YourComponenteName' methodName='YourMethodName'/>";
    //Incude how many args your need here
         resp+="&arg1=" + arg1;
         resp+="&arg2=" + arg2;
         resp+="&arg3=" + arg3;
         xmlhttp.open("POST",resp,true);
         xmlhttp.send(null);
    3 - You'll need a div html tag called "AnyDIV" to receive the BPM answer
    4 - On you BPM component, in YourMethodName method (needs to be ServerSide = no), create two args, the first is httpRequest type (name request), and the second is httpResponse type (name response) (fuego lib)
    5 - Type the code below in your BPM method to send info back to the JSP
    //getting the args
    String arg1 = request.getParameter(string : "arg1");
    String arg2 = request.getParameter(string : "arg2");
    String arg3     = request.getParameter(string : "arg3");
    //Do the webservice call here, prepare the html answer and put it into an string variable
    strReturn = "bla bla bla";
    //Send the anwser back to the jsp
    response.bodyTextContent(arg1 : strReturn);
    Or you can do this using xml answer and deal with the tags with javascript
    that's it

  • Javaw process still active

    I am working on a project and I am using Swing classes (JBuilder 6). When I close a JFrame the javaw process remains active in the task manager (win 2000). I have added a windowlistaner on windowclosing (System.exit(0)) and also set the default closing operationto EXIT_ON_CLOSE but it still doesn't work.
    Please help

    Try using the following code in the constructor of the JFrame you are using.
    It basically adds a WindowListener, and on closing disposes the frame and exits process.
    Basically, what u have described in ur posting, but just in case this works, it would be great.
    //code starts
    addWindowListener(new java.awt.event.WindowAdapter()
    � public void windowClosing(java.awt.event.WindowEvent evt)
    � {
    ���dispose();
         �� System.exit(0);
    � }
    //code ends
    -Manish.

  • Why process chain activation is taking more time?

    Hi BW Gurus,
    I am going to activate the process chain, but it takes more time to activate the process chain . What may be the reasons ?
    Regards,
    Raju

    Hi,
    Process chain activation becomes slow due to the following reasons.
    1)Large no of entities in RSPCCHAIN Table i.e, there is  lot of process chains and very large process chains.
    2)There is a missing index for the RSPCCHAIN Table.
    Solution for this problem is  we have to create an index for the following fields of the RSPCCHAIN table.
    EVENT_GREEN
    EVENT_PGREEN
    EVENT_RED
    EVENT_PRED
    Still  if you want further clarification on this , Refer the following sap notes.
    906512---Activating process chain is very slow.
    Related Notes: 872275, 872273& 872271 .
    Regards,
    Chendrasekhar

  • Could not connect to the Active Directory. Active Directory Certificate Services will retry when processing requires Active Directory access

    Event properties – Event 91, Level Error, Event ID 91, Date and time 5/10/2012 11:29:48AM, Service CertificationAuthority
    General: 
    Could not connect to the Active Directory.
    Active Directory Certificate Services will retry when processing requires Active Directory access.
    We have a Windows 2008 Server Enterprise with AD . I would like to enable the service  "Certificate Services"  that
    allow me to enable radius to authenticate users wireless with the active directory.

    Hi, 
    Can you please check this forum or someone from Microsoft, as we have post here dating back from October that are not being answered.
    Everything for us is exactly the same as szucsati and Racom
    NMNM, 
    Please give us an answer on this as the link provided is absolutely useless.
    Thank you.

  • Why does my terminal prompt look like this?

    Today I noticed that my Terminal prompt now looks like this:
    *pranaymishra:~ tbarth$*
    Any idea how that happened? There's nothing in the .profile that does this.
    -Travis

    The computer name is 'Travis', and always has been.
    Hmmm...
    Further investigating shows a computer by that name on the network with a different IP address. The DHCP server shows my IP address as associated with my computer name, 'Travis'.
    So could this be an OS X network error where it's picking up the computer name from something like WINS or DNS and not updating it if the IP lease changes? And if so, why does it not simply use the given name specified by the user instead?
    As far as the network is concerned, my computer name is 'Travis', as it should be.
    -Travis
    EDIT: BTW, 'Use dynamic global host name' is not enabled.
    Message was edited by: Travis B

  • Terminal prompt starts with client IP Address

    I named my macbook pro as "pine" and add the following line to the .bash_profile file
    export PS1='\h:\w> '
    Normally, it displays "pine:~>", but after I connect my laptop to the wireless network via a VPN, the prompt becomes
    client-77-104-71-149:~>
    Why does the terminal prompt look so weird? How to change it back to normal?

    The issue occurs on a daily basis for about 100 laptops that are normally docked to a wired connection (subnet 10.2.3.x), but when undocked the laptop transitions to a wireless connection (10.2.5.x).  When initially docked, a laptop connected to
    a wired connection will properly negotiate with DHCP all four parts of the handshake in the classic way and get an IP address (10.2.3.101 for example). 
    The problem begins about 5 - 10 minutes later when the same laptop makes a DHCPDiscover with a source address of 10.2.3.101 and destination address of 255.255.255.255.  This continues every 10 minutes or so until the laptop is undocked or taken off
    the wire.  It only acquires on additional address once, but if we delete it off the DHCP server, then it reacquires the bad, additional lease. 
    When the laptop reach 50% of its lease life or later (undocked and returned the next day), it make a DHCPRequest for 10.2.3.101 from source address 0.0.0.0 to destination address 255.255.255.255.  It then reacquires the lease like normal. 
    Yes, the docking and undocking will move them between subnets by changing the interface.  If we disable the wireless adapters while the laptop is docked, it stops sending DHCPDiscover packets from source address 10.2.3.101 to destination address 255.255.255.255. 
    When we reenable the wireless adapters, then the bad behavior starts up again.  We see this in Wireshark packet captures and the DHCP client logging.  None of the events or strings have from the logs have either given us an explantion or solution. 
    Thanks again,
    Mark

  • How to make Terminal prompt change permanent?

    I am using OS X Lion v10.7.2 and want to change my terminal prompt, but everytime I shutdown and restart Terminal, it defaults back to the original.
    I am using
    export PS1="\w >"
    Thanks

    If it exists, its in your Home Directory
         ls .bash_profile
    If you get
          ls: .bash_profile: No such file or directory, then just create it with:
              echo PS1='\w >' >> .bash_profile

  • Hi I update my I Phone 3 GS for IOS 6.1. but he asking activate Iphone after we process for activation he shown error. please do the needfull

    hi I update my I Phone 3 GS for IOS 6.1. but he asking activate Iphone after we process for activation he shown error. please do the needfull

    Try to restart or - if necessary - to restore the iPhone: 
    See this document:  iPhone: Troubleshooting activation issues
    Disable your Firewall and Antivirus software - it may be blocking the access to the server. Wait a day, maybe the server is down.
    If your iPhone cannot be activated, because it has been modified, we cannot help, see:  http://support.apple.com/kb/HT3743

Maybe you are looking for

  • Messages problem .. 5800 software ver. 20.0.012

    hello every body .. i hd updated my phone to latest version 20.0.012 .. current i can't open message right now please how can i fix this  thanks in advance and best regards ,  alz3abi 

  • Report for Unposted assets

    Hi Gurus, Could you please me provide the procedure of pulling the report for Unposted assets and T-code. If any documentation on the same please do the needful by providing. Regards, Praveen.

  • Photo Smart Plus B will not print black

    My B210 Photosmart printer will not print black.  Have changed cartridge, and all other colors work.  Is there someplace it could be "clogged"? This question was solved. View Solution.

  • Server communicates with client. I got a question.

    Hi everybody, i am writing two programs, a server and a client. i want to write an aplication like MSN Messenger. So between the server and the "Java Messenger" (client) there is much communication like when the messenger want to connect to the serve

  • Graphical watermark quality issues in Lightroom 3.3

    I am having issues with the graphical watermark quality in Lightroom 3.3 (.png file). It seems to be resizing the imagine stranglely and creating aliasing on the font. This is happening on a Windows Vista machine. If I use the same watermark file and