How to properly load applications with OpenBox

Originally, I was using a simply script to start all my applications, then start openbox. For some reason though, this script fails many times and doesn't run certain applications. I was wondering how to make a startup script for openbox, I want to run a few applications when I first start openbox. I am using GDM, and a site told me to use the .xsession file for GDM, however this file is never excuted by GDM, so it's usless to me. Any help is appreciated.

Roberth wrote:
If you have Openbox 3.4, you could create an file called autostart.sh in ~/.config/openbox, for example mine looks like this
# Run the system-wide support stuff
. $GLOBALAUTOSTART
# Programs to launch at startup
xrandr -r 60 &
feh --bg-tile black_mosaic_by_seikq.jpg &
#xcompmgr -Cc &
# Programs that will run after Openbox has started
docker &
conky &
If the script exist, openbox will start it automaticly, and start openbox-session, instead of openbox, if you're running plain openbox.
Yes, this works, but I end up with the same issue as before, I am using an application for a taskbar, and it always skips over the taskbar and doesn't load it. I've tried multiple task bars, each one, same thing happens.

Similar Messages

  • How to start a application with a login window?

    hi there
    does anyone have any idea on how to start an application with a login window? a login window is the first frame or window to be displayed when an application starts running. and only correct login id and password have been entered the real application will start. any sample out there? thank you.

    You can start a new thread by making a thread object and passing it an implementation of a runnable object. Runnable has just one method, public void run(), this is was gets executed in a second thread. perhaps the code you would use would look something like this.
    <code>
    // set up thread for login window
    new Thread(new Runnable() {
    public void run() {
    // construct your login window here
    // when you are done processing the
    // password....
    if(goodPassword) {
    authorized = true; // a global variable
    notifyAll(); // don't forget this
    else {
    System.exit(42);
    }).start();
    // control does not stop this code gets executed while
    // the above thread is running.
    // Set up main program here. This is done in the
    // backround.
    while(!authorized) {
    synchronized(this)
    { wait(50); }
    // now when the user logs in this frame pops
    // up real quick.
    myFrame.setVisible(true);
    </code>
    Hope you can figure it out.. good luck :)

  • How to download the application with my apple ID

    how to download the application with my apple ID

    What have you tried or are you asking how to do it from scratch?
    https://itunes.apple.com/us/app/apple-store/id375380948?mt=8

  • How to deploy cairngorm application with FTP support?

    Hi,
    I have a cairngorm application, it works fine in my local
    computer.
    But I need to upload it to a website in my web hosting
    company with FTP,
    but it doesn't work in the hosting server because I can not
    add the cairngorm.swc file to the application.
    Please give me a idea how to deploy the application with ftp
    software.
    Thanks a lot
    Mark

    Any opinions are welcome

  • Anyone know how to gernerate CRUD applications with flex and coldfusion?

    Anyone know how to gernerate CRUD applications with flex and
    coldfusion? I am working with a remote coldsfusion installation
    with MS SQL and I don't have RDS.

    You might investigate "squidhead". It is CF based. I'm not
    sure if it has any Flex related features.
    http://squidhead.riaforge.org/

  • How to integrate android application with oracle database using oracle mobile database server.

    Hi,
    I developed one web application using oracle database. I want to implement same web application in android. My problem is how to integrate android application with existing oracle database using oracle database mobile server. Can u please guide me how to install oracle database mobile server and how to integrate android app with existing oracle database..
    Thank you.

    In the Database Mobile Doc set there is an entire book that covers the Installation of Oracle Database Mobile Server.   Chap 4 of that book contains screen shots and all kinds of information that will help guide you through the installation.   We also have a doc on the different mobile clients.  Chap 2 of that guide covers installs and integration of an android app. 
    thanks
    mike

  • How to launch an application with elevated administrator account privilege from windows service even if the account has not yet logon

    Here is the case:
    OS environment: Windows 7
    There are two user accounts in my system, standard user "S" and administrator account "A", and there is a windows service running with "Local System" privilege.
    Now i logged-in with account "S", and i want to launch an application with elevated administrator account "A" from that service program, so here is the code snippet:
    int LaunchAppWithElevatedPrivilege (
    LPTSTR lpszUsername, // client to log on
    LPTSTR lpszDomain, // domain of client's account
    LPTSTR lpszPassword, // client's password
    LPTSTR lpCommandLine // command line to execute e.g. L"C:\\windows\\regedit.exe"
    DWORD dwExitCode = 0;
    HANDLE hToken = NULL;
    HANDLE hFullToken = NULL;
    HANDLE hPrimaryFullToken = NULL;
    HANDLE lsa = NULL;
    BOOL bResult = FALSE;
    LUID luid;
    MSV1_0_INTERACTIVE_PROFILE* profile = NULL;
    DWORD err;
    PTOKEN_GROUPS LocalGroups = NULL;
    DWORD dwLength = 0;
    DWORD dwSessionId = 0;
    LPVOID pEnv = NULL;
    DWORD dwCreationFlags = 0;
    PROCESS_INFORMATION pi = {0};
    STARTUPINFO si = {0};
    __try
    if (!LogonUser( lpszUsername,
    lpszDomain,
    lpszPassword,
    LOGON32_LOGON_INTERACTIVE,
    LOGON32_PROVIDER_DEFAULT,
    &hToken))
    LOG_FAILED(L"GetTokenInformation failed!");
    __leave;
    if( !GetTokenInformation(hToken, (TOKEN_INFORMATION_CLASS)19, (VOID*)&hFullToken,
    sizeof(HANDLE), &dwLength))
    LOG_FAILED(L"GetTokenInformation failed!");
    __leave;
    if(!DuplicateTokenEx(hFullToken, MAXIMUM_ALLOWED, NULL,
    SecurityIdentification, TokenPrimary, &hPrimaryFullToken))
    LOG_FAILED(L"DuplicateTokenEx failed!");
    __leave;
    DWORD dwSessionId = 0;
    WTS_SESSION_INFO* sessionInfo = NULL;
    DWORD ndSessionInfoCount;
    bResult = WTSEnumerateSessions(WTS_CURRENT_SERVER_HANDLE, 0, 1, &sessionInfo, &ndSessionInfoCount);
    if (!bResult)
    dwSessionId = WTSGetActiveConsoleSessionId();
    else
    for(unsigned int i=0; i<ndSessionInfoCount; i++)
    if( sessionInfo[i].State == WTSActive )
    dwSessionId = sessionInfo[i].SessionId;
    if(0 == dwSessionId)
    LOG_FAILED(L"Get active session id failed!");
    __leave;
    if(!SetTokenInformation(hPrimaryFullToken, TokenSessionId, &dwSessionId, sizeof(DWORD)))
    LOG_FAILED(L"SetTokenInformation failed!");
    __leave;
    if(CreateEnvironmentBlock(&pEnv, hPrimaryFullToken, FALSE))
    dwCreationFlags |= CREATE_UNICODE_ENVIRONMENT;
    else
    pEnv=NULL;
    if (! ImpersonateLoggedOnUser(hPrimaryFullToken) )
    LOG_FAILED(L"ImpersonateLoggedOnUser failed!");
    __leave;
    si.cb= sizeof(STARTUPINFO);
    si.lpDesktop = L"winsta0\\default";
    bResult = CreateProcessAsUser(
    hPrimaryFullToken, // client's access token
    NULL, // file to execute
    lpCommandLine, // command line
    NULL, // pointer to process SECURITY_ATTRIBUTES
    NULL, // pointer to thread SECURITY_ATTRIBUTES
    FALSE, // handles are not inheritable
    dwCreationFlags, // creation flags
    pEnv, // pointer to new environment block
    NULL, // name of current directory
    &si, // pointer to STARTUPINFO structure
    &pi // receives information about new process
    RevertToSelf();
    if (bResult && pi.hProcess != INVALID_HANDLE_VALUE)
    WaitForSingleObject(pi.hProcess, INFINITE);
    GetExitCodeProcess(pi.hProcess, &dwExitCode);
    else
    LOG_FAILED(L"CreateProcessAsUser failed!");
    __finally
    if (pi.hProcess != INVALID_HANDLE_VALUE)
    CloseHandle(pi.hProcess);
    if (pi.hThread != INVALID_HANDLE_VALUE)
    CloseHandle(pi.hThread);
    if(LocalGroups)
    LocalFree(LocalGroups);
    if(pEnv)
    DestroyEnvironmentBlock(pEnv);
    if(hToken)
    CloseHandle(hToken);
    if(hFullToken)
    CloseHandle(hFullToken);
    if(hPrimaryFullToken)
    CloseHandle(hPrimaryFullToken);
    return dwExitCode;
    I passed in username and password of account "A" to method "LaunchAppWithElevatedPrivilege", and also the application i want to launch, e.g. "C:\windows\regedit.exe", but when i run the service program, i found it do launch
    "regedit.exe" with elevated account "A", but the content of regedit.exe is pure back. screenshot as below:
    Can anyone help me on this?

    You code is not dealing with the DACL access to Winsta0\Default.  Only the LocalSystem account will have full access and the interactively logged on user which is why regedit is not displaying properly.  You'll need to grant access to your user. 
    You also need to deal with UAC since that code is going to give you a non-elevated token via LogonUser().  You need to get the full token via a call to GetTokenInformation() + TokenLinkedToken.
    thanks
    Frank K [MSFT]
    Follow us on Twitter, www.twitter.com/WindowsSDK.

  • How do I uninstall applications with a MacBook Pro?

    Hai, I need help finding out how to uninstall applications with a MacBook Pro?
    -I just got this computer 5-6 days ago and I hardly know anything about it. (AS expected from a new user to a Mac computer. ) Everything is kind of confusing to me especially with unziping and ziping files.
    -I have researched trying to find out ways to uninstall with a Mac but everyone seems to have a different way to uninstall. And I really don't want to do something to mess up my new computer while trying to find out how to uninstall applications. (These computers are "expensive" and are non-returnable.)
    If anyone can answer my question that would be so great and I would surely appreciate you!
    Thank you, CreeSuki.
    OH, and if needed I am running on operating system "Lion" (Rawrrrr). And I am trying to uninstall Adobe Photoshop CS5.1 in general.
    Thank you!

    The basic way to uninstall an app is just trash it.  But to get (most, sometimes all) of its associated data files, for example, preferences (usually .plist files in ~/Library/Preferences -- ~ is your home directory) you either have to know what to look for or try to use one of the 3rd party generic uninstallers.  Here's a (partial?) list of potential uninstallers:
    Amnesia
    AppCleaner
    AppDelete
    AppZapper
    CleanApp
    iTrash
    TrahsMe
    Go to www.macupdate.com and search for them.
    Note, there is no guarantee these uninstallers will find all the potential stuff an app can install but even if it misses stuff no harm is done other than wasting a little disk space.
    Oh, almost forgot.  Many apps that come with their own installers sometimes provide their own uninstallers to uninstall themselves.  Use those if they are provided instead of one of the generic uninstallers.

  • How to create an application with a 'Windows' like interface?

    Hi,
    I am trying to create an application with an windows like interface where menu selections need to open bound taskflows in a page/window but i can not get it to work. I did the following
    - i created a page template with a panelStretchLayout
    - added a menuBar with commandMenuItems
    - created a start page based on the template
    - created bound taskflows with page fragments for all menu items
    - placed a dynamic region on the start page which initially shows a taskflow with an empty/blank page fragment
    - change the dynamic region taskflow from every menuitem and added partial triggers on the dynamic region for every menu item
    When i run the application the first empty page fragment is showed correctly but when i select a menu item the correct new page fragment is showed but it keeps showing a loading data .... hint and seems to freeze. So no data is showed while the underlying datacontrols work while using the bc tester.
    Besides this problem i am wondering if i at all am going the right way with this with using a dynamic region? In the final application i will have a total of about 25 menu items over several menus and if they all will be showing in one main dynamic region with partial triggers set to all menu items it may get a bit complex? I saw you can also create a window in a popup which i like even more because it looks like an actual window but this is modal. I would like a bound taskflow to be opened whenever a menu selection is made.
    Any pointers or tips or the solution to not showing data?
    Kind Regards,
    Andre

    Hi Sascha,
    If have not encountered that problem. Are you sure you have a taskflow entry under the executables tag in the page definition of the page which has the dynamic region on it? I have one like this:
    <taskFlow id="dynamicRegion1" taskFlowId="${DynamicRegionBean.dynamicTaskFlowId}" xmlns="http://xmlns.oracle.com/adf/controller/binding"/>
    During the selection of its initial value when it is rendering for the first time it should have the session bean already initialized. My bean looks like this:
    public class DynamicRegion {
    private String taskFlowId = "/WEB-INF/startTF.xml#startTF";
    public DynamicRegion() {
    public TaskFlowId getDynamicTaskFlowId() {
    return TaskFlowId.parse(taskFlowId);
    public String feitenTF() {
    taskFlowId = "/WEB-INF/feitenTF.xml#feitenTF";
    return taskFlowId;
    public String themasTF() {
    taskFlowId = "/WEB-INF/themasTF.xml#themasTF";
    return taskFlowId;
    public String feitCategorienTF() {
    taskFlowId = "/WEB-INF/feitCategorienTF.xml#feitCategorienTF";
    return taskFlowId;
    The startTF is the initial taskflow and the other methods are being called from my menu. The dynamic region has the menu items as partial triggers. That is all i did.
    Kind Regards,
    Andre

  • How to run others applications with abap commands

    Is there a mothed that can use it to run an application with abap statement?
    for example: how to open a text file in program with abap command?
    thank you very much.

    CALL FUNCTION '<b>WS_EXECUTE'</b>
    EXPORTING
      DOCUMENT                 = ' '
      CD                       = ' '
       <b>COMMANDLINE</b>              = ''
      INFORM                   = ' '
      <b> PROGRAM                 </b> = 'NOTEPAD'
      STAT                     = ' '
      WINID                    = ' '
      OSMAC_SCRIPT             = ' '
      OSMAC_CREATOR            = ' '
      WIN16_EXT                = ' '
      EXEC_RC                  = ' '
    IMPORTING
      RBUFF                    =
    EXCEPTIONS
      FRONTEND_ERROR           = 1
      NO_BATCH                 = 2
      PROG_NOT_FOUND           = 3
      ILLEGAL_OPTION           = 4
      GUI_REFUSE_EXECUTE       = 5
      OTHERS                   = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Here...
    In the <b>CommandLine</b> you can give the path where the file is located like for Example
    C:\Test\Hello.txt.
    In the <b>Program</b> you need to give the application that you want to open that file.
    if helpful reward points...
    Regards,
    Vivekananda Varma Dandu

  • URGENT: How to fix an application with the screen resolution?

    HI everyone,
    I am desprate and need help.. I have developed an application with Java swing and awt (JFrames, JPanels and...). This application displays perfectly with 1280 x 1024 screen resolution but in a situation where the screen does not support this resolution, a part of my application will not appear. I can not even scroll down to see the reste of the components. Does any one has any idea that how I can resolve this problem! I mean how either I can make my JFrame or panel to scroll down or to change the size of the components according to the resolution!
    Thank you very much and wait for a reply :)

    One of the possible reason of the problem is you must have hardcoded the size of panels and other container that is just right for the screen resolution 1280 x 1024.
    The solution is set the size of the containers that depends on the resolution of the screen.
    You have not explained much detail about the scrolling problem. But I suppose that you have a scrollpane in you GUI and you want to scroll the component inside it even at another resolution.
    try using this
    if p is the panel that is added in the scrollpane then set its prefered size.
    p.setPreferredSize(resolution dependant size).

  • How to complie an application with many classes?

    I build an application with many classes,
    java palm.database.MakePalmApp -v -version "1.0" -icon 1.bmp -bootclasspath %j2meclasspath% -networking -classpath output %1
    this only works with only one class, I do not know if I have an application with several classes how can I convert them into a prc??

    Take a look at the mksample.bat file that came with
    midp4palm:
    java -jar MakeMIDPApp.jar -version 1.0 -type Data -creator mJav -nobeam -v -o ManyBalls_new.prc -JARtoPRC ManyBalls.jar example.manyballs.ManyBalls
    You will need to create a jar file consisting of the
    classes for your application, and then run it through
    a statement like above.
    Perry

  • How to connect Java Application with database!

    Dear all, now I am create a dababase application. My database use JData Store. But I don't know how to connect application with it. Can you tell me this proplem?
    Thank!

    Do a google search for JDBC, or go buy a book.
    You will need a JDBC driver which supports your database. Or you might be able to use the JDBC-ODBC bridge if there's an ODBC driver for your database.

  • How to Deploy J2ME applications with data in RMS?

    Hello everyone,
    I am designing a J2ME application, a simple "Who wants to be a millionaire game". It stores questions and answers from a rms datastore. I want to to how can I deploy this application with questions and answers in the recordstore. Each time I run the emulator, the data stored previously gets deleted. Is it possible to attach the rms recordstore along with the .jar or .jad files? If so how can I do it. Please help.
    Thank you all in advance.

    Thank you Sypress.. When I install it the code works fine. But I wanted to include data with the application. I think I found a way way. I added the data in a text file and while starting the application I inserted data from the file into the recordstore.

  • How do you manage power with Openbox on laptop?

    What do you use to check the battery power with Openbox. On other distros, there is generally a popup when the battery has reached a low level.
    I would like to know how other people manage it. Do you try to reproduce other distro's behavior?
    Last edited by Gradient (2013-05-19 22:58:15)

    For the extra lazy you could always just use xfce4-power-manager and some kind of taskbar with a tray.  Though I think this kind of goes against the whole idea of setting things up in manually in a customized way.
    I use i3, and the default i3status (the program that feeds info the i3bar) has an option for battery levels.  I made it so that it turns blood red when I get to a certain percentage.  In terms of a total WM agnostic solution, you could always just have a cronjob run a script that checks the level, then throws up an xdialog box telling you about low battery levels, and then even have it shutdown/hibernate/suspend at a certain level.

Maybe you are looking for

  • My iPod Won't Restore

    OK, so I plug in my iPod Touch to my computer (Windows Vista) and its in recovery mode at the moment and i have to restore it but every time i try it doesn't work, i comes up with an error and then goes back to recovery mode. Any help? Ed

  • Asset year end closing issue

    Hi, I run ajab to close year 2010 (not 2011)and encounter below issue: Asset 004110000555-0000 in company code 0000 (depreciation incomplete) Message no. AU070 Diagnosis The planned depreciation was not completely posted to Financial Accounting for a

  • Submitting of smartforms in background

    Hi all, Can any one explain me how to submit smartform in background. Explain me in details. Thanks In Advance Ramana Prasad

  • Scheduled Delivery Date

    Hi Guys I have an issue with the scheduled delivery date being determined incorrectly. If an order is created with the required delivery date of saturday or sunday, the system is confirming the schedule lines for that day/date. The factory calendar h

  • Authorization Object of Article Group

    Hi Gurus, Could you tell me , what is the authorization object of Article Group? I want to aggregate this object to my roles of Material Management. Thanks for your support. Regards. Miguel Cerna