[solved] Terminal opens in background

Hello,
I use the following configuration in my Openbox rc.xml to open gnome-terminal with Super+t:
<keybind key="W-t">
<action name="execute">
<execute>gnome-terminal</execute>
</action>
</keybind>
However, this always opens gnome-terminal in background, thus not in the foreground of the currently active window. On the other side, it is opened in the foreground when called explicitly, for instance from the run dialog of dmenu.
Does anyone know what determines if a window is opened in the foreground or background?
Thankfully,
Robert
Last edited by orschiro (2015-02-08 21:18:50)

You could try adding:
<startupnotify>
<enabled>yes</enabled>
</startupnotify>
http://openbox.org/wiki/Help:Actions#St … tification

Similar Messages

  • XFCE terminal opens in background

    What I mean by background is usually I just click the terminal shortcut and start typing.  Now I have to click in the window first.  This also happens with the file manager shortcut.  This is a regression although I'm not sure what update caused it.  The problem appears to be with the "exo-open" program that the shortcuts in the quickbar (and also with the "terminal emulator" and "file manager" shortcuts in the Applications menu.)  The "exo-open" program opens whatever terminal or file manager you have set as default.
    If I go down to system > Xfce Terminal or Thunar file manager which opens those programs directly I don't have this problem.  They open in the foreground.  The quickbar "exo-open" shortcuts used to do that same.  I'm wondering what changed.
    Last edited by weirddan455 (2015-03-21 00:36:48)

    Nevermind found the regression.  Looks like exo is its own package and was just updated two days ago.  Downgraded from exo-0.10.4-1 to exo-0.10.3-2 and the problem went away.
    EDIT:  And bug report opened https://bugs.archlinux.org/task/44282
    Not sure whether this should also be reported upstream.
    Last edited by weirddan455 (2015-03-21 00:48:04)

  • [Solved] Program's windows opens in background.

    Hi I have weird problem with my arch. When I run firefox, or opera or chrome or whatever, and I want to open another program (like gnome-terminal, avidemux, xmms, smplayer..or whatever) the window of this program opens in background. I have to click the bottom panel to switch to this program. WTF is going on ? The option "always show on top" is not selected.
    Last edited by lgolebio (2010-04-22 19:00:32)

    Ofcourse, I forget
    Sepc: (everything up to date)
    Archlinux 32bit
    Gnome 2.30.0-1
    laptop dell m1530
    Last edited by lgolebio (2010-04-22 18:59:25)

  • [SOLVED] xfce4-terminal opened unfocused when called by exo-open

    xfce4-terminal opened unfocused when called by
    exo-open --launch TerminalEmulator
    Last edited by D101101 (2015-03-22 19:30:49)

    Thank you, this was driving me crazy.  When I went to open a xfce-terminal (not xterm), it would not "focus" on it.. it was driving me nuts.
    Needless to say, I checked, and rechecked, and rechecked my settings for focus.. probably messing something up in the process, all because exo was bugged (!!!??).
    (bump me, but now they got to fix Thunar.  Thunar is not updating files in folders.)
    Please see https://bbs.archlinux.org/viewtopic.php?id=194955
    Last edited by Kilzool (2015-03-23 04:42:48)

  • [Solved] "cannot open display" after suspend/resume, possibly broadcom

    Hey peoples,
    [EDIT: I think my initial assumptions are incorrect, this issue seems to be occurring independently of whatever wifi driver I have loaded]
    I'm finding that after suspend/resume my machine will not open any new windows. The windows that were already open continue to function. If I've left a terminal open, and attempt to open a new window I get the message:
    [framps@localhost ~]$ firefox
    Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyError: cannot open display: :0.0
    I've found that removing the broadcom-wl driver from my system seems to fix the issue. I can't see anything particularly obvious in my dmesg. I think I need the broadcom-wl driver as I have not been able to get b43 or bcma to work for my machine.
    [  948.814261] cfg80211: World regulatory domain updated:
    [  948.814266] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [  948.814269] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [  948.814272] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [  948.814275] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [  948.814277] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [  948.814280] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [  949.404722] r8169 0000:0c:00.0 eth0: link down
    [  949.404741] r8169 0000:0c:00.0 eth0: link down
    [  949.404773] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  949.355635] PM: Syncing filesystems ... done.
    [  949.717960] PM: Preparing system for mem sleep
    [  949.851316] Freezing user space processes ... (elapsed 0.01 seconds) done.
    [  949.862059] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
    [  949.875377] PM: Entering mem sleep
    [  949.875472] Suspending console(s) (use no_console_suspend to debug)
    [  950.064255] xhci_hcd 0000:00:14.0: WARN Event TRB for slot 1 ep 0 with no TDs queued?
    [  950.064507] sd 0:0:0:0: [sda] Synchronizing SCSI cache
    [  950.075138] sd 0:0:0:0: [sda] Stopping disk
    [  950.165918] ERROR @wl_notify_scan_status : Scan complete while device not scanning
    [  950.477845] i915 0000:00:02.0: power state changed by ACPI to D3hot
    [  950.551140] PM: suspend of devices complete after 676.056 msecs
    [  950.551485] PM: late suspend of devices complete after 0.342 msecs
    [  950.567669] r8169 0000:0c:00.0: wake-up capability enabled by ACPI
    [  950.581418] ehci_hcd 0000:00:1d.0: wake-up capability enabled by ACPI
    [  950.594384] ehci_hcd 0000:00:1a.0: wake-up capability enabled by ACPI
    [  950.620974] xhci_hcd 0000:00:14.0: wake-up capability enabled by ACPI
    [  950.634321] PM: noirq suspend of devices complete after 82.939 msecs
    [  950.634762] ACPI: Preparing to enter system sleep state S3
    [  950.730816] PM: Saving platform NVS memory
    [  950.736910] Disabling non-boot CPUs ...
    [  950.738461] smpboot: CPU 1 is now offline
    [  950.840631] smpboot: CPU 2 is now offline
    [  950.943831] smpboot: CPU 3 is now offline
    [  950.944231] Extended CMOS year: 2000
    [  950.945389] ACPI: Low-level resume complete
    [  950.945427] PM: Restoring platform NVS memory
    [  950.945811] Extended CMOS year: 2000
    [  950.945864] Enabling non-boot CPUs ...
    [  950.949268] smpboot: Booting Node 0 Processor 1 APIC 0x1
    [  950.963117] CPU1 is up
    [  950.966520] smpboot: Booting Node 0 Processor 2 APIC 0x2
    [  950.980330] CPU2 is up
    [  950.980386] smpboot: Booting Node 0 Processor 3 APIC 0x3
    [  950.994238] CPU3 is up
    [  950.997398] ACPI: Waking up from system sleep state S3
    [  951.471580] i915 0000:00:02.0: power state changed by ACPI to D0
    [  951.498111] xhci_hcd 0000:00:14.0: wake-up capability disabled by ACPI
    [  951.524753] ehci_hcd 0000:00:1a.0: wake-up capability disabled by ACPI
    [  951.551380] ehci_hcd 0000:00:1d.0: wake-up capability disabled by ACPI
    [  951.564744] nvidia 0000:01:00.0: power state changed by ACPI to D0
    [  951.591567] PM: noirq resume of devices complete after 120.295 msecs
    [  951.591837] PM: early resume of devices complete after 0.236 msecs
    [  951.591891] i915 0000:00:02.0: setting latency timer to 64
    [  951.591894] xhci_hcd 0000:00:14.0: setting latency timer to 64
    [  951.591968] mei 0000:00:16.0: irq 43 for MSI/MSI-X
    [  951.591983] ehci_hcd 0000:00:1a.0: setting latency timer to 64
    [  951.592037] ehci_hcd 0000:00:1d.0: setting latency timer to 64
    [  951.592108] ahci 0000:00:1f.2: setting latency timer to 64
    [  951.592119] snd_hda_intel 0000:00:1b.0: irq 46 for MSI/MSI-X
    [  951.594182] r8169 0000:0c:00.0: wake-up capability disabled by ACPI
    [  951.634511] [drm:__gen6_gt_force_wake_mt_get] *ERROR* Timed out waiting for forcewake old ack to clear.
    [  951.636110] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
    [  951.796066] r8169 0000:0c:00.0 eth0: link down
    [  951.824070] Extended CMOS year: 2000
    [  951.831119] usb 3-1.3: reset full-speed USB device number 3 using ehci_hcd
    [  951.910921] ata5: SATA link down (SStatus 0 SControl 300)
    [  951.916168] btusb 3-1.3:1.0: no reset_resume for driver btusb?
    [  951.916171] btusb 3-1.3:1.1: no reset_resume for driver btusb?
    [  951.924226] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    [  951.926030] ata2.00: configured for UDMA/100
    [  951.981369] usb 4-1.6: reset high-speed USB device number 3 using ehci_hcd
    [  952.876326] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [  952.877743] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
    [  952.877747] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
    [  952.877750] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
    [  952.880489] ata1.00: ACPI cmd ef/02:00:00:00:00:a0 (SET FEATURES) succeeded
    [  952.880493] ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
    [  952.880496] ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
    [  952.881600] ata1.00: configured for UDMA/100
    [  952.893105] sd 0:0:0:0: [sda] Starting disk
    [  952.911681] PM: resume of devices complete after 1321.544 msecs
    [  952.912745] PM: Finishing wakeup.
    [  952.912748] Restarting tasks ... done.
    [  953.018321] video LNXVIDEO:00: Restoring backlight state
    [  953.018862] video LNXVIDEO:01: Restoring backlight state
    [  953.376503] r8169 0000:0c:00.0 eth0: link up
    [  953.376515] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    Any help would be greatly appreciated. Thanks.
    Last edited by frampy (2013-03-16 01:20:57)

    It seems that the only option for my  wifi card, BCM43228 is the proprietary broadcom-wl.
    Can anyone suggest how I might be able to get any debugging information for this module? Maybe this driver is conflicting with something else on my system, as I can't find anyone else that is seeing this same issue.
    Very frustrating, my machine is a Thinkpad Edge E530. Because I ordered from New Zealand there was no option to include the alternative Intel card and I was stuck with the broadcom. Apparently there's a whitelist on the BIOS aswell which will prevent me from installing another card.

  • I have tried to install office for mac and an iWork trial and each time I go to install my "terminal" opens with the heading bash-80X24 and in the box reads Joel$-office installer.mpkg joel$ . nothing further happens

    I have tried to install office for mac and an iWork trial and each time I go to install after downloading my "terminal" opens with the
    heading
    bash-80X24 and
    in the box reads Joel$-office installer.mpkg joel$ .
    nothing further happens

    This is thread from Apple discussions.
    Look for the suggestion from Shootist007 towards the end of the 2nd page.
    It is just may be useful.
    https://discussions.apple.com/thread/3709115?start=15&tstart=0

  • HT1338 I am trying to update Microsoft Office 12.3.3 on my Macbook Pro, but once it is installed terminal opens. What am I supposed to enter into Terminal?

    I am trying to update Microsoft Office 12.3.3 on my Macbook Pro, but once it is installed terminal opens. What am I supposed to enter into Terminal?

    Still trying to understand.  You install one of the MS updates (most recent was 14.2.2) and after the update completes (before the installer quits) terminal opens?  Or the installer quits and then terminal opens?
    And who is prompting for "Check for updates" ("get taken back" to what)?  Is this coming from office, say when you run Word?   Certianly the updater doesn't cause this prompt.

  • Open Image-Background Layer

    Working with FireWork8. New situation: all images open in
    Background layer. The layer window shows Web Layer, Layer 1 and
    Background.
    If more than one image is open it stack on top of the other
    one(s) in the background layer and covers it (it used to open in a
    new 'line'). If 2 images are in bg layer, one is moved into Layer
    1, although the remaining one is still bg layer said bg layer shows
    empty in the layers window. If the image in the bg layer is
    highlighted layer 1 shows as empty.
    I think it is something in the settings, but I cannot find
    where.
    Thank you for your help.
    btw I have uninstalled and re-installed FW8, same problem.
    Thank you
    Guy

    ghrb wrote:
    > Working with FireWork8. New situation: all images open
    in Background layer. The
    > layer window shows Web Layer, Layer 1 and Background.
    >
    > If more than one image is open it stack on top of the
    other one(s) in the
    > background layer and covers it (it used to open in a new
    'line'). If 2 images
    > are in bg layer, one is moved into Layer 1, although the
    remaining one is still
    > bg layer said bg layer shows empty in the layers window.
    If the image in the bg
    > layer is highlighted layer 1 shows as empty.
    >
    > I think it is something in the settings, but I cannot
    find where.
    >
    > Thank you for your help.
    >
    > btw I have uninstalled and re-installed FW8, same
    problem.
    >
    > Thank you
    >
    > Guy
    >
    Are you opening PNG files or PSD files?
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    .:Adobe Community Expert for Fireworks:.
    http://www.adobe.com/communities/experts/members/206.html

  • Terminal opens at start up

    terminal opens at start up everytime

    Open Accounts preferences, click on the Login Items tab. If you see Terminal listed, then select it and click on the Delete [-] button.

  • I can't use option "Open in Background Tab". Before was Command+Left mouse click

    Hey,
    Here:
    http://support.mozilla.com/en-US/kb/Mouse%20shortcuts?s=Open+in+Background+Tab&as=s
    is shown that '''Command+left mouse click''' is opening in new tab in background.
    In Firefox 4 it doesn't work. Do you have any idea how to make it work?
    Thanks.

    It's called New Tab Homepage and it's here:
    https://addons.mozilla.org/en-US/firefox/addon/new-tab-homepage/
    It's OK and fixed my problem with 90%. Before New Tab which I wanted to open in Background, was opening just after main Tab. Now New Tabs are opening in Background, but at the end...
    But it's OK - like Safari.
    Thanks man!

  • Why does the terminal open when I try to install an application?

    I just installed a software update, and I cannot install any applications without the bash Terminal opening up.  I don't know what it does or how it works.  Prior to the the OS X update, this issue never occurred, when I downloaded an application - it installed automatically.  I would like things to install automatically since I have no idea what I'm doing when it comes to code or bash or whatever.  PLEASE HELP!

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Terminal opens at startup

    When I start up my Imac, terminal opens.  It has been happening for over a year now.  Any ideas?
    Thanks
    Darren

    Go to: Apple / System Preferences / Accounts / Login Items and remove it from the list of items that open automatically when you login.

  • [SOLVED] nautilus-open-terminal without menubar

    How do I get nautilus-open-terminal to open the terminal with no menubar?
    I.e. I prefer 'gnome-terminal --hide-menubar' as suppose to just 'gnome-terminal'
    Anyone?
    Last edited by alphahsk (2007-12-04 17:49:34)

    you can disable the menu in all new windows in the general tab of gnome-terminal's edit profile
    That solved it. Thanks.

  • [SOLVED] Xfce terminal open links with wrong browser.

    After installing Opera as second browser, xfce terminal began to open links with it, instead of my default browser - Firefox.
    I right click on an URL, choose 'Open Link' and it opens in Opera.
    Firefox is set as default browser in Settings -> Preferred Applications -> Web Browser
    xdg-open http://archlinux.org
    - opens Firefox
    exo-open http://archlinux.org
    - opens Firefox
    After quick search through xfce terminal sources i found it uses some function - gtk_show_uri.
    I googled it, found that topic: https://bbs.archlinux.org/viewtopic.php?id=140028 and tried the solution:
    cat ~/.local/share/applications/mimeapps.list
    [Added Associations]
    x-scheme-handler/mailto=exo-mail-reader.desktop
    x-scheme-handler/http=firefox-browser.desktop
    strangely it doesn't help.
    After all righ click url in terminal and 'Open Link' still uses Opera.
    Any ideas? What else can i do to find out a reason?
    Last edited by spacetekk (2015-01-04 11:41:53)

    Tried BROWSER envar - doesnt help, and as i understand it must work only for cli apps.
    Editing of  ~/.config/mimeapps.list doesnt help eather:
    cat ~/.config/mimeapps.list
    [Default Applications]
    text/vcard=firefox.desktop
    text/html=firefox.desktop
    [Added Associations]
    text/vcard=firefox.desktop;
    text/html=firefox.desktop
    but maybe it's not correct.
    After that i tried to strace xfce4-terminal:
    poll([{fd=4, events=POLLIN}], 1, 4294967295) = 1 ([{fd=4, revents=POLLIN}])
    recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"\34\0.\331!\t`\2N\1\0\0\330\336\7\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 352
    recvmsg(4, 0x7fff5ad349d0, 0) = -1 EAGAIN (Resource temporarily unavailable)
    stat("/home/user/.local/share//mime/mime.cache", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/home/user/.local/share//mime/globs", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/home/user/.local/share//mime/magic", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/local/share/mime/mime.cache", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/local/share/mime/globs", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/local/share/mime/magic", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/share/mime/mime.cache", {st_mode=S_IFREG|0644, st_size=115108, ...}) = 0
    open("/usr/share/applications/opera.desktop", O_RDONLY) = 13
    fstat(13, {st_mode=S_IFREG|0644, st_size=550, ...}) = 0
    read(13, "[Desktop Entry]\nVersion=1.0\nName"..., 4096) = 550
    read(13, "", 4096) = 0
    close(13) = 0
    access("/usr/local/sbin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/bin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/bin/opera", X_OK) = 0
    getuid() = 1000
    stat("/usr/bin/opera", {st_mode=S_IFREG|0755, st_size=416, ...}) = 0
    access("/usr/local/sbin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/bin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/bin/opera", X_OK) = 0
    getuid() = 1000
    stat("/usr/bin/opera", {st_mode=S_IFREG|0755, st_size=416, ...}) = 0
    pipe2([13, 19], 0) = 0
    pipe2([20, 21], 0) = 0
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd725cf1bd0) = 1469
    close(19) = 0
    close(21) = 0
    wait4(1469, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1469
    and it's strange but as i can understand it uses some mime cache file located at /usr/local/share/mime/mime.cache
    and before that some other non existing files, but i dont see there any familiar config files.

  • [SOLVED] Cannot open display: . Problem from Terminal

    Hi,
    I have a small problem with X I guess. I hope you can help me, as extensive googleling did not help.
    I'm just configuring my arch install (newbie). Everything I have configured so far works great, the documentation is really good. I can start my xfce sessions an everything. However, I just wanted to look something up, when
    $ xfce4-about
    printed the following error:
    xfce4-about: Cannot open display: .
    This happened from terminal, not within a xfce-session.
    Does anyone have an idea how I should proceed to eliminate this minor problem?
    Thanks for your help in advance.
    Last edited by jared (2012-02-22 04:38:21)

    Seems you can't run xfce4-about from the non-X terminal, just like you can't run firefox.

Maybe you are looking for

  • Error While installing SQL SERVER 2012 Upgrade Advisor

    Hi,      " An error occured during the installation of assembly 'Microsoft.VC80.CRT,type="win32",Version="8.0.50727.4053",publickeyToken="1fc8b3b9a1e18e3b",processorArchitecture="amd64" Please refer to help and support for more information .HRESULT:0

  • Load Balancing question

    My company is in the process of building a small scale network architecture strictly for testing purposes. We have a DMZ area that contains 2 load balancers and 1 web server. The web server is a SunFire 280 and has two gig e nics. They want to cable

  • Finder not picking up external HD

    I have an external HD that have connected to the mac before in fact I believe it is in OX forma, but regardless when I connect the drive I can see if it disk utility but I can select it. It doesn't show up in finder but I do get a message saying that

  • SOA Suite Issue in Oracle Application Server

    Can anyone tell me ? why it says opmctl.exe is not recognized command at sql prompt . let me know please . any help would be highly appreciated . C:\product\10.1.3.1\OracleAS_1>opmctl.exe startall 'opmctl.exe' is not recognized as an internal or exte

  • Nokia C2-01 Application Error.

    I have Nokia C2-01, after RESTORING ALL the phone restarts and am directed to date&time settings after which my phone automatically starts to open My Nokia (it displays "opening my Nokia") but suddenly my phone displays "Application error" detail of