[SOLVED] openbox menu command doesn't work with &&

I'm now using openbox-session only.
I'd like to run a program after something was done correctly:
zenity --question && killall openbox
I used "obmenu" and it seems that it fixes & to & correctly in the menu.xml.
However, the previous command "zenity" is run only.
In terminal, there's no problem, but it doesn't work with "command" in openbox menu.
<item label="Exit">
<action name="Execute">
<execute>
zenity --question --title="Exit" --text="Are you sure to go back to console?" && killall openbox
</execute>
</action>
</item>
Please, give me any idea. Thank you.
Last edited by mairoo (2009-09-09 10:06:17)

hbekel wrote:
You'll need to use a shell explicitly:
<execute>
sh -c 'command1 && command2'
</execute>
I flagged "solved" thanks to your help. It works good. Thank you.

Similar Messages

  • [Solved]Openbox: Autostart.sh doesn't work

    Hello
    I just made a fresh install of arch with openbox but I can't launch my applications at start
    xterm &
    nitrogen --restore &
    This doesn't work in ~/.config/openbox/autostart.sh neither in /etc/xdg/openbox/autostart.sh
    Can someone help me plz ?
    thanks and sorry for my bad english
    Last edited by Jeager (2010-05-16 20:48:43)

    Sorry I'm new with linux. Thanks you for your time
    Last edited by Jeager (2010-05-16 20:40:26)

  • Priority class command doesn't work with a certain program

    Hello folks,
    I'm trying to automatize the priority class setting of a program named FreeTrack through a command written in the shortcut. Hence in its "target" I've written this (I'm using Windows 7 x64):
    C:\Windows\System32\cmd.exe /c start /REALTIME /AFFINITY 8 "" "E:\Program Files (x86)\FreeTrack\FreeTrack.exe"
    As you can see I also wanted the affinity mask of the program to be set automatically upon launch, and it works fine. The issue is that the priority class remains unchanged to normal.
    I've tried removing the "affinity" command but it didn't work.
    The priority command does its job on another program (for the attempt I used Firefox).
    Is there any explanation for this anomalous behaviour? And, most importantly, is there a solution (which preferably doesn't involve installing additional programs) ?
    Thank you and regards

    All right, I've found a solution; I'll post it for anyone in need. It's not particularly elegant but still functional.
    First of all I've created a .cmd file in the folder where is located the executable of my interest.
    In it, using notepad, I've written as following:
    start /affinity 8 FreeTrack.exe
    ping 1.1.1.1 -n 1 -w 2000 > nul
    wmic process where name="FreeTrack.exe" CALL setpriority 256
    Note that the /affinity command is optional and not required (however, I needed it). Replace "FreeTrack.exe" with the name of your executable.
    The ping part pings a fake IP once and then waits 2000 milliseconds (set a higher waiting time if this one doesn't work).
    The third line changes the priority for all the processes under the name of "FreeTrack.exe" to, in my case, realtime.
    Priority legend:
    Low: 64 Below Normal: 16384 Normal: 32 Above Normal: 32768 High: 128 Realtime: 256
    Since the command prompt window appears for 2 seconds and I don't like that, I've created a .vbs file in the same folder of the .cmd file and executable. This hides the cmd window.
    I've put the following into the .vbs file (edited with notepad):
    Set WshShell = CreateObject("WScript.Shell" )
    WshShell.Run chr(34) & "FreeTrack.cmd" & Chr(34), 0
    Set WshShell = Nothing
    Replace "FreeTrack.cmd" with your .cmd file name.
    I've then created a shortcut on the desktop to the .vbs file and changed the icon to the one of the executable.
    Surely this solution won't work if the program keeps reverting back its priority while running.

  • [SOLVED] adf faces demo doesn't work with jdev 10.3.1.2

    Has anybody tried to run the ‘Introduction to adf faces/trinidad using jdev’ demo at
    http://www.oracle.com/technology/obe/obe1013jdev/10131/trinidad/adf_faces_trinidad.htm
    with jdev 10.1.3.2 studio?
    I am trying it and I am getting this error
    500 Internal Server Error
    java.lang.NoSuchMethodError: oracle.adf.view.faces.context.AdfFacesContextFactory.createContext(Loracle/adf/view/faces/webapp/wrapper/ContextWrapper;Loracle/adf/view/faces/webapp/wrapper/RequestWrapper;)Loracle/adf/view/faces/context/AdfFacesContext;
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl.startFilter(AdfFacesFilterHelperImpl.java:112)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:111)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:622)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Message was edited by:
    mauro avon

    We don't automatically migrate the adf-faces-api.jar since in a 10.1.3.x ADF Faces application this JAR is not part of your project's WEB-INF/lib directory.
    The issue must be specific to migrating this Apache Trinidad example.

  • My cellcom line doesn't work with my iPhone here in Israel, why? Is there any way I can solve this issue?

    My cellcom line doesn't work with my iPhone here in Israel, why? Is there any way I can solve this issue?

    Please explain.
    What does "cellcom line doesn't work with my iPhone" mean?
    What are you trying?  What is happening?
    Where did you buy the iphone?
    Any info abnout your issue at all?

  • Firefox command line option "-no-remote" doesn't work with profile.

    I want to run the stripped version of firefox in background with one application and another full version of firefox for normal browsing. I have created the profile for the stripped version of firefox and loading the same using command firefox -P "stripped" -no-remote/firefox -no-remote -P "stripped". But when I start the full version of firefox by launcher "firefox" than it directly loads the stripped version even used the -no-remote option with profile. So I have created launcher for firefox and used the -no-remote with default profile like "firefox -no-remote". It works when first time I click on launcher but for second click it shows the message "Firefox instance is running, or not responding. close the firefox and restart the system". I have gone through the online available documents that suggests that use the -no-remote option with profile so the default profiles works correctly. But -no-remote option doesn't work with the profile. So is there any way to launch the full version of firefox by launcher on second click on launcher?

    Yes, I used separate profiles only. But the -no-remote option doesn't work as mentioned http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile.
    Please find below the command what I am using
    firefox -P "stripped" -no-remote
    firefox
    If I use the above command than the new firefox window get the configuration from the stripped even if I have used the -no-remote.
    I use the -no-remote with firefox default than it works for the first time.
    I have created the launcher for firefox default. So if I click second time on launcher than it doesn't work.
    firefox -P "stripped"
    firefox -no-remote
    (But doc on link -> http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile) says do not use the -no-remote with default.
    Do you have any idea why this is happening?

  • HT204291 i have a late 2011 macbook pro and i don't have the airplay icon on my menu. Everything is on the same network and i have a black mini apple Tv. it is either 2nd or 3rd generation. The airplay icon comes up in itunes it doesn't works with video j

    i have a late 2011 macbook pro and i don't have the airplay icon on my menu. Everything is on the same network and i have a black mini apple Tv. it is either 2nd or 3rd generation. The airplay icon comes up in itunes it doesn't works with video just music. I want to mirror it on my apple tv. Will you please help me?

    That's why, you will need to upgrade to 10.8

  • Numbers 3.2 has changed too much, it doesn't work with my project anymore. How do I revert back to the previous version I was using?

    Numbers 3.2 has changed too much, it doesn't work with my project anymore. 1) The sheet panels used to be on the left hand side and easily reviewable and searchable, but now they are on the top and it's harder to find a specific folder without scrolling (too time consuming), 2) I used to be able to duplicate a folder within my sheet panel window by simply clicking on a folder and hitting Command D, but that doesn't work now so it looks like I'll have to spend even more time to recreate the same tables that used to be easily duplicated, and 3) I can't choose fill colors that matched my project anymore because there are only limited choices available now. And these are only the changes that I'm aware of. I am very disappointed and frustrated. Whatever the motivation was to limit Numbers 3.2, I want the previous version back. How do I revert back to the previous version I was using?

    The sheet panels used to be on the left hand side and easily reviewable and searchable, but now they are on the top and it's harder to find a specific folder without scrolling (too time consuming),
    You can scroll more quickly between sheets if you don't use the left-right triangles, but instead move the cursor up into the bands with the "tabs" and drag right or left.
    Also, if you have a lot if sheets for which you want a quick vertical list, then you can try the following have something like this pop up (showing your sheet names automatically) whenever you hit a keyboard shortcut (in my case shift-command-j):
    This is done via a Jump to Sheet Automator Service (Dropbox download).  To install just doubleclick the .workflow package and (if needed) click 'Download Anyway' in System Preferences > Privacy & Security.
    This will cause a new item to appear in your Numbers > Services menu.  Then, if you want a keyboard shortcut, go here in System Preferences and add one:
    You can rename or remove the service by holding down the option key in Finder and choosing Go > Library > Services. You can also view the AppleScript contaned within the service by opening the .workflow package in Automator.
    This particular service jumps to the first cell of the first table of the sheet you choose from an automatically generated list of all sheets in the current document.
    SG

  • HT1338 Safari Hide command doesn't work

    Now my Safari 6.0 "Hide Safari" command doesn't work (whether clicking the command-H or going up under the Safari menu and down to the Hide Safari command.
    Any suggestions anyone? I am about one more issue away from abandoning Safari altogether and just using Chrome and Firefox.

    I've made a number of iWeb websites. I notice that I can't "Command +" the text larger or smaller. Is this a function of an iWeb site .. or is there something I'm missing?
    What browser are you talking about? If Safari, is it the same with the other major browsers (Firefox and Opera)? Could you provide the url of an example?

  • Hp2311x menu button doesn't work

    I have an hp 2311x monitor.  I've been using is with a PC with DVI for a couple of years.  I hooked it up to a new computer with VGA only.  I can't get the menu to display so that I can change it to VGA.  The menu button doesn't work.  It did briefly one time, but it didn't take my input.  How do I get the menu to come up?  This is driving me crazy.

    Hello tpferro,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More. I understand that you are looking to connect your monitor to your computer, and I would be happy to assist you!
    I am sorry, but to get your issue more exposure, I would suggest posting it in the commercial forums, since this is a commercial product. You can do this at
    http://h30499.www3.hp.com/t5/Monitors/bd-p/bsc-1255
    I hope this helps!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • Menu bar no longer working with IE update

    With the recent update in IE my main menu bar is no longer working, the "hover" function is not working and looks like the links are broken, but the links do work if you actually click on them.  From my vista machine it is OK but from my XP machine it does not show as being a link. The submenu's however do still work, here is the code, the first line is from the main menu and doesn't work, the 2nd line is a submenu and does work.
    Here is the site www.conundrumadventures.com
    From the main menu this is the code for "Adventures":
    <td id="002" class="link4" onclick="location.href='Teambuilding-Exercises-Adventures.php'"; onmouseover="changeC('002','link4h');" onmouseout="changeC('002','link4');" >Adventures</td>
            </tr>
            <tr>
    From within the adventures page here is the code for the submenu for  "Conundrum Metro":
              <td id="303" class="Sublink4" onclick="location.href='Outdoor-Team-Building.php'"; onmouseover="subchangeC('303','Sublink4h');" onmouseout="subchangeC('303','Sublink4');" >Conundrum Metro</td>
            </tr>
    Any ideas how to fix the main menu bar?
    Thanks
    Lynn

    I recommend doing away with your mouseover/mouseout links and convert to using Cascading Style Sheets.
    Here is a link to CSS tutorials: http://www.adobe.com/devnet/dreamweaver/css.html
    You don't say whether you are using Dreamweaver CS4 or an earlier version, but even if you are using that earlier version, you can type the code in yourself. Look especially at the tutorial chain "Designing with CSS", as there is a module that talks about a menu bar and how to make the links.
    Best wishes,
    Beth

  • The Bluetooth on my 2012 Lexus doesn't work with my iPhone 5.  My old android phone worked perfectly with my car.  Even the tech guy at Lexus couldn't get it to work.  What is apple doing to fix this.

    The Bluetooth on my 2012 Lexus doesn't work with my iPhone 5.  My old android worked perfectly with my car.  Even the tech specialist at Lexus couldn't get it to work.  Lexus said that other iPhone 5s were having the same problem.  What is apple doing to fix this?

    Going to the local Apple store this morning...
    My problem is not uncommon as the board is showing signs of this happening to many others as well. That is where I found the restore and reboot information to try to solve the issue of crashing apps.
    I understand that Apple will not "give away the cow", but letting iPhone users know that the problems they are having are being addressed by Apple is a little more comforting than nothing at all. Other wise, all the apps in world are useless and even more importantly worthless, if a person has to reset/reboot/reload just to get them to work.
    IF Apple can not address the basic problems with todays iPhone apps, why should one believe that the iPhone 3.0 OS is any better? Using a PC comparison, which is better, XP or Vista. If the current iPhone OS of 2.2. what ever is not working that well (as related to down loaded apps and iTunes), will OS 3.0 be any better?
    The waste of time I refer to is in going to the apps store and downloading the apps... Again why by apps if the free version does not work?

  • Media Encoder CS4 doesn't work with Premiere (pic related)

    Oh hai!
    I just got Adobe Master Collection CS4 and my Media Encoder doesn't work with Premiere CS4. When I try to export the file, Encoder starts normally. Then I click "Start queue" and Encoder starts loading. Loading takes almost five minutes, which is a long time, because my project is very simple. After that nothing happens, just a warning sign appears. When I click it open, some kind of log file open and it says:
    Encoding failed
    Could not read from the source. Please check if it has moved or been deleted.
    And I didn't deleted anything. So what does that mean? Why that "Source Name's" path is different than my project files path? Can this problem relate that somehow?
    I have also another problem with Premiere CS4, maybe there's a link between these two problems. I can't get Premiere projects linked to open in Premiere CS4. When I right-click the project icon, and click “Open with…”, I can't find Premiere from the list. When I click "Browse", I can find Premiere.exe from my computer, but if i doubel-clicked it, nothing happens. It won't appear to the list or anywhere else. Or have I missed something? So now the project files are linked to open in After Effects. Of course I can open projects from Premiere, but how do I get them open straight from file?
    I have long experience using Adobe Premiere and this is the first time I got this kind of problems. I have also downloaded new updates for Premiere and Encoder, this didn't help. Does that matter, that I didn't installed Premiere in C-drive? However it's in my computers internal drive, I have divided my hard drive for five parts, one part contains all of my softwares. My scratch disks are in different hard drive (external), does that matter? I tried different location, but that didn't help.
    Please help, I can't do any video editing, because of this problem. And sorry for my english, ask if you didn't understand something. =)

    Hello, this is terrible problem, which i found in CS 6 softwares ...
    solution i found only working, is uninstall and reinstall full package.. but it is not all,
    you need to do BRAND NEW admin account in windows, and install it there.
    that means, i could not export after repair from encoder in my original account never more (!!)   .. this is really terrible way how to repair this issue, because :
    1.by reinstalling of software, client WASTE HIS TIME
    2.by necessity to begin work in another windows profile you again WASTE YOUR TIME because of learning and migrating all other profile modifications, which i see really unaccpetable. Adobe means, this solution of repair is ok, and they did not do till today any steps of creating some "clever" solution.
    I ask everybody, who will meet this issue in future, guys, please, complain about this situation, give "BUG Report" to them, and write "feature request" to them , in the way of creating some repair tool, which check actual  "broken" connections between encoder and premiere, which refuses to "take material" from it and encode, and REPAIR it automatically..  
       I am not IT, but ..does it seems so hard to create this ? Adobe IT developers should know their systems, and should create such utility tool really easy.
    History of this problem and detailed description, HOW i did "repair" this. With wasting of app 2,5 days of my working time :
    1. after repairing "error 5" problem , i solved it by reinstalling the suite from the new admin user profile (profile B) . 
    I continued my work on my normal working windows profile . (profile A)
    Every cooperation (AE+Pr, export media via "queue" to Encoder) was working fine . . .
    2. suddenly it stop working (without knowing any possible reason - i did not do installations )
    and showed in error export log file :
    "Could not read from the source. Please check if it has moved or been deleted."
    3.repair via procedure(procedure "a"):
    i did this procedure on the profile B (profile from last time installation of repairing problem error 5)
    I did these steps :
    a-uninstall master coll suite
    b-i used Adobe cleaner tool (remove ALL)
    c-removed raw directories in locations
    •C:\Program Files\Adobe
    •C:\Program Files(x86)\Adobe
    •C:\Program Files\Common Files\Adobe
    •C:\Program Files(x86)\Common Files\Adobe
    •C:\ProgramData\Adobe
    d-removed these links from registry file
    •HKEY_LOCAL_MACHINE\SOFTWARE\Adobe
    •HKEY_CURRENT_USER\Software\Adobe
    •HKEY_LOCAL_MACH INE\SOFTWARE\Wow6432Node\Adobe
    •HKEY_CURRENT_USER \Software\Wow6432Node\Adobe
    e-restarted the PC
    f- newly installed the Master Coll CS6
    g-update the software
    result of repair of "3" : problem still exists
    4.Ok i find out after coordination with support, it should have been created  ANOTHER NEW admin account.
    4a:so i did the same procedure (uninstalling) in profile B
    4b: and then i created brand new admin profile (profile C)for INSTALLATION of software
    4c: restarted the pc (and did not updated it yet)
    result :
    ==exporting of any sequence/raw/AE link video material from premiere via "queue" (Encoder) (profile C) : export WORKS
    ==exporting of any sequence/raw/AE link video material from premiere via "queue" (Encoder) (profile B) : export WORKS
    ==exporting of any sequence/raw/AE link video material from premiere via "queue" (Encoder) (profile A) : export DOES NOT WORK ! ! !
    (in profile A, is possible to export some raw video material in encoder which is imported to it via "drag and drop)
    problem i see:, i have my basic profile A, which i am interested to work, because of all my directory modifications are in there..
    this issue should be some "broken" connections between encoder and premiere, which refuses to "take material" from it and encode.
    what i expect :
    to get from Adobe some repair tool, which automatically checks these connections and repair if necessary, without necessity of founding the new profile and reinstallation of whole software.. this is madness !
    what i do NOT expect from Adobe:
    to get from Adobe advice of kind : you have to reinstall full software in new admin profile. sorry , we do not know the solution, because we do not know, how do behave our software.

  • WRE54G doesn't work with PS3...

    Hello,
    I bought yesterday the range expander WRE54G because I would like to expand my WiFi singal and make it accesible to my PS3.
    I configured de range expander and it works fine with all my electronic gadgets with WiFi, but it doesn't work with PS3. My PS3 is always contecting and disconecting... And, curiously, when i connect PS3 directly to my router, using wifi too, it works fine...
    What can i do to solve this problem? I only bought it to use with PS3.
    i put the same SSID and chanel of the router wifi to the range expander... I think it must be in that way, no?
    Thanks in advanced.

    You have correctly setup the WRE54G if you have same SSID, wireless channel and wireless security on this device and the router. The range expander will reduce the wireless connection speed by Half. So may be your connection drops because of lower connection speed.

  • Visually handicap, needs to increase font size in logic pro, Command  doesn't work

    Hi,
         I'm visually handicapped, and new to logic-pro.  I'm having a miserable time reading the internal logic-pro fonts.  Command + doesn't work, and I can't find any preferrence or settings options that affect the default font sizes, any ideas?

    Unfortunately you cannot change the font size of the main fonts in Logic...
    However, there are a couple of other settings you may not be aware of...
    1) Under Logic Pro's preferences... go to Display
    Now you can change the size of the playhead and Local Windows under the General Tab
    You can increase the size of the Logic plugin windows/fonts sizes under the Mixer Tab (I have mine set to 200%)
    Note: This setting does not apply to 3rd party plugins.. only Logic's own plugins...
    Under the Piano Roll tab you can change the size of Bar/Beats/Division Lines...
    2) Using the screen zoom command... Hold down control and scroll on your mouse... will zoom in the screen...
    Note: as you are using Mountain Lion there is also a new setting under System Preferences/Accessability
    Choose Zoom on the left hand side
    Now choose Zoom Style/Picture in Picture and instead of a full screen zoom it provides you with a magnifying glass of sorts to just magnify the area arund your mouse pointer. I find this setting very useful....
    Hope this helps...

Maybe you are looking for