Proper way to exit openbox

Hi,
I'm running latest Arch with native systemd + slim +openbox.
I think that a recent change has changed the way that slim + openbox is working.
slim.service is working and I can log in
openbox is started via .xinitrc using exec openbox-session
in a terminal I see that
$ loginctl --no-pager show-session $XDG_SESSION_ID | grep Active
Active=yes
so session management with systemd-logind appears to be working. However, I can only logout once from openbox using openbox --exit.
The first time I do this slim reappears and I can log back in. The second time  logout gets bumped to the console; I can restart slim.service to get back in.
How should I be starting openbox ie do I need ck-launch-session / dbus-launch any longer?
How should I be exiting openbox? Is openbox --exit the right way?
Is this the same issue as https://bbs.archlinux.org/viewtopic.php?id=151304

Hi.
With systemd-logind as session manager, you should not use console kit and the 'ck-launch-session' which comes with it.
If you created your ~/.xinitrc from the '/etc/skel/.xinitrc' template and so have these lines in it:
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
you don't need to use the dbus-launch command either, as a session dbus instance is already existing.
Personally I don't use slim but only startx, and I want to return to a console prompt when I exit openbox.
I use the 'Exit' action in the main menu (I don't see the command line --exit parameter in the doc).
In your case, you want to return to the slim login screen, and if it doesn't return to it, I tend to think it is a problem with the slim service file.
Is there a 'Restart=always' in it?
Last edited by berbae (2013-04-26 16:02:12)

Similar Messages

  • Proper way to exit with a j2ee java app running in the NW70 j2ee engine

    Hello,
    I am working on migrating an app and it's ear from j2ee 6.20 to 7.0. It deploys okay, but when invoked, the j2ee server restarts. Looking at the part that fails, its trying to create a jco connection, which fails and then it catches the failure and does a stack dump and a System.exit(1). It shuts down and restarts at that point. Is System.exit(1) the proper way to exit a java app that is running within the j2ee engine? If it is, is it possible I am picking up the wrong System.exit and need to use an SAP specific one? I inherited the code, but not the IDE it was written with.
    Thanks,
    Paul D. Chamberlain

    Hi,
    Answered my own question. System.exit(1) should not be used. Return works.
    Paul D. Chamberlain

  • How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes?

    How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes? I wanted my teenager's AppleID to be different from mine so that she couldn't charge stuff to my AppleID, therefore I created me another one. Now when I go to Sync either device, it tells me that this IOS device can only be synced with one AppleID. Then I get a message to erase it, not going to do that, lol. If I logout as one ID and login as the other, will it still retain all synced information on the PC from the first IOS device? If I can just log in out of the AppleID, then I have no problem doing that as long as the synced apps, music, etc stays there for both. I am not trying to copy from one to the other, just want to make sure I have a backup for the UhOh times. If logging in and out on the same PC of multiple AppleIDs is acceptible then I need to be able to authorize the PC for both devices. Thanks for the help. I am new to the iOS world.

    "Method Three
    Create a separate iTunes library for each device. Note:It is important that you make a new iTunes Library file. Do not justmake a copy of your existing iTunes Library file. If iTunes is open,quit it.
    This one may work. I searched and searched on the website for something like this, I guess I just didn't search correctly, lol. I will give this a try later. My daughter is not be back for a few weekends, therefore I will have to try the Method 3 when she comes back for the weekend again. "
    I forgot to mention that she has a PC at her house that she also syncs to. Would this cause a problem. I am already getting that pop up saying that the iPod is synced to another library (even though she is signed in with her Apple ID to iTunes) and gives the pop up to Cancel, Erase & Sync, or Transfer Purchases. My question arose because she clicked on "Erase & Sync" by mistake when she plugged the iPod to her PC the first time. When the iPod was purchased and setup, it was synced to my PC first. When she went home, she hooked it up to her PC and then she erased it by accident. I was able to restore all the missing stuff yesterday using my PC. However, even after doing that it still told me the next time I hooked it up last night that the iPod was currently synced with a different library. Hopefully, you can help me understand all this. She wants to sync her iPod and also backup her iPod at both places. Both PCs have been authorised. Thanks

  • What is the proper way to record line numbers in Master/Detail records?

    Guys and Gals,
    Been thinking about this for awhile, but thought it best to ask the people who really know what they are doing.
    What is the proper way to record & show line numbers in a Master / Detail record set?
    For example, take Master/Detail relationship Orders and OrderItems. Orders has a column Document_Number and OrderItems has Document_Number, Line_Number. Line_Number should contain the row number 1,2,3,4 ... etc. for each row in a document.
    Should I ...
    <ol><li>Add a sequence and a trigger in the database? The FusionOrderDemo does this, but then the sequence never "resets" and I've got row numbers that keep incrementing. So one document has rows 4,5,6 and the next document has 7,8,9 when they should both have 1,2,3.</li>
    <li>Programmatically take care of the row numbers? This seems like I'm asking for trouble. Anytime an insert or delete operation gets done, I'll have to iterate through rows and re-assign row numbers.</li>
    <li>Is there a way to assign row numbers in a table iterator (or data collection?) to an entity?</li></ol>
    Any suggestions would be appreciated. It's looking like #2 is my only option, but if anyone knows different I'd love the input.
    Will

    Thank you both guys.
    As John said, I believe I'm looking for a gap-free sequence per master record.
    The line number of the OrderItems table is the second half of the primary key. The first half of the primary key (DocumentNumber) is the foreign key to the Orders table.
    Think of it like line items on an order or invoice. For example, if you were talking to someone on the phone concerning an invoice, you might say, "The pricing for line item #3 is incorrect." In this case, it's good to have a common reference. Or imagine a Microsoft Excel spreadsheet with no row numbers displayed! You'd never get anywhere if you had to explain something over the phone.
    If this is tricky to perform, I take it using a sequence and trigger such as the Fusion Order Demo is the best way to approach the challenge for simplicity's sake?
    Will

  • What is the proper way to extend 2nd generation time capsule network to 2nd generation Airport Express?

    I have a Simultaneous Dual Band Time Capsule. Up until now, I have been extending the network with the Airport Express (2nd Gen, the 802.11n model). Since it was not simultaneous dual band, it was extending over the 2.4 GHz band so as it could extend b, g, and n and support my iPhone at 2.4 n as well as my iPad and MacBook Pro at 5 GHz.
    I just bought the new simultaneous dual band unit, which theoreticalkly should be able to extend both bands.
    Now, it is not that simple. I also run a guest network, which I assume also gets extended when WDS is on. I also still have the old Express which I have relegated to another part of the house.
    When I set up the new Express, it asked me which one of the networks I want to join, either <SSID> or <SSID 5GHz>, the automatically generated name for the the 5 GHz band on the Time Capsule. Which one do I join? How do I know that both are extended? When I connect to the <SSID 5GHz> now my iPhone can see that one and connect to it, so I am assuming it is NOT going at 5 GHz.
    And I have no idea at all what the guest network is doing....
    Does anyone have any insight into tthe proper way to configure all the units, and what I can expect? My network is as follows:
                                                                                             Airport Express (Simultaneous Dual Band)
    Cable Modem > Time Capsule (Simultaneous Dual Band) >
                                                                                             Airport Express (802.11n, last gen)
    I want to run guest network (hopefully simultaneous dual band) and personal network. I want the new express to run both bands just like the Time Capsule, and for the old express I want to know which of the two bands I am extending.
    Thank You!

    I also run a guest network, which I assume also gets extended when WDS is on
    Unfortunately, the Guest Network cannot be extended.
    When I set up the new Express, it asked me which one of the networks I want to join, either <SSID> or <SSID 5GHz>, the automatically generated name for the the 5 GHz band on the Time Capsule.
    This likely indicates that the Time Capsule has been setup to use separate names for the 5 GHz and 2.4 GHz bands, instead of the default, which uses the same wireless network name for both bands.
    In order for the AirPort Express to be able to extend both bands, the Time Capsule will need to be configured so that both bands use the same wireless network name.
    Then, configure the AirPort Express to extend the wireless network name of the Time Capsule, and it will extend both bands.  At least, that is the way an AirPort Extreme works, and I assume that the Express is the same. I don't have an Express here to test, but will in another day or two.
    The location of the Express is important, since the 5 GHz signals are not as strong as 2.4 GHz signals. You may need to experiment by placing the Express closer to the Time Capsule than normal.  With an AirPort Extreme, I find that the Extreme must be located no more than about half the distance from the main router to the area that needs more wireless coverage.
    If you continue to use the previous model Express to extend as well, it too must be configured to extend the wireless network name of the Time Capsule. Configured this way, the Express will extend the stronger of the 2.4 GHz or 5 GHz signals, so it will likely extend the 2.4 GHz band unless it is located close to the Time Capsule.
    To find out which band the previous model Express is extending, locate a Mac laptop close to the Express and hold down the option key on your Mac while you click on the AirPort icon at the top of the screen. The info displayed will indicate whether you (and the Express) are connecting using 2.4 GHz or 5 GHz.

  • What is the proper way to open the app store  for ios

    Using Air3.1 to develope a game.
    I want to have links on my main menu which will open the iOS app store for a specific application.
    The only way I have found to do this is by opening a url "http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=<THEAPPIDHERE>&mt=8"
    However, while this does work, so to speak, when I try to go back to the application, it starts up as if it had crashed... and it does several "redirects" before it get's where it is eventually going.
    Is there a better/proper way to open the app store?
    Cheers
    dave

    Read this page, especially the later examples:
    http://bjango.com/articles/ituneslinks/

  • What is the proper way to close all open sessions of a NI PXI-4110 for a given Device alias?

    I've found that, when programming the NI PXI-4110 that, if a the VI "niDCPower Initialize With Channels VI" (NI-DCPower pallette) is called with a device
    alias that all ready has one or more sessions open (due to an abort or other programming error) a device reference results from the reference out that has a (*) where "*" is post-fixed to the device reference where and is an integer starting that increments with each initialize call. In my clean up, I would like to close all open sessions. For example, let's said the device alias is "NIPower_1" in NI Max, and there are 5 open sessions; NIPower_1, NIPower_1 (1), NIPower_1 (2), NIPower_1 (3), and NIPower_1 (4). A simple initialize or reset (using niDCPower Initialize With Channels VI, or, niDCPower Initialize With Channels VI, etc.) What is the proper way to close all open sessions?
    Thanks in advance. Been struggleing with this for days!

    When you Initialize a session to a device that already has a session open, NI-DCPower closes the previous session and returns a new one. You can verify this very easily: try to use the first session after the second session was opened.
    Unfortunately, there is a small leak and that is what you encountered: the previous session remains registered with LabVIEW, since we unregister inside the Close VI and this was never called. So the name of the session still shows in the control like you noted: NIPower_1, NIPower_1 (1), NIPower_1 (2), NIPower_1 (3), and NIPower_1 (4), etc.
    There may be a way to iterate over the registered sessions, but I couldn't find it. However, you can unregister them by calling "IVI Delete Session". Look for it inside "niDCPower Close.vi". If you don't have the list of open sessions, but you have the device name, then you can just append (1), (2) and so forth and call "IVI Delete Session" in a loop. There's no problem calling it on sessions that were never added.
    However - I consider all this a hack. What you should do is write code that does not leak sessions. Anything you open, you should close. If you find yourself in a situation where there are a lot of leaked sessions during development, relaunching LabVIEW will clear it out. If relaunching LabVIEW is too much of an annoyance, then write a VI that does what I described above and run it when needed. You can even make it "smarter" by getting the names of all the NI-DCPower devices in your system using the System Configuration or niModInst APIs.
    Hope this helps.
    Marcos Kirsch
    Principal Software Engineer
    Core Modular Instruments Software
    National Instruments

  • Proper way to embed PDF into IE6 or 7

    Does anyone know the official proper way to embed these files?
    I have seen it this way
    [code]
    EMBED src="example1.pdf" width="450" height="450" href="example1.pdf"> /EMBED>
    [/code]
    and this way
    [code]
    OBJECT CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH=728
    HEIGHT=728>  EMBED SRC="manual.pdf"
    HEIGHT=728 WIDTH=728> NOEMBED> Your browser does not support embedded PDF
    files. /NOEMBED> /EMBED>/OBJECT>
    [/code]
    Any help is appreciated.
    (I had to take out all the less-than signs becase it was trying to run the actual code.)
    thanks,
    -brett

    To send an html email, you must first build a web page (with the contents you need) then send that.
    Keep in mind that a lot of people have disabled the option to get the html so they will see garbage.
    Here is a great resource for html email design...
    http://www.mailchimp.com/resources/html_email_design.pdf

  • What is the proper way to charge battery in 2012 15 inch macbook pro.

    what is the proper way to charge the battery and make it last longest

    About Batteries in Modern Apple Laptops
    Battery University
    Apple - Batteries - Notebooks
    Apple - Batteries
    Extending the Life of Your Laptop Battery
    MacBook and MacBook Pro- Mac reduces processor speed when battery is removed while operating from an A-C adaptor
    Apple Portables- Calibrating your computer's battery for best performance
    Mac notebooks- Determining battery cycle count

  • There's no proper way to export charts to PDF in numbers 3

    In Numbers 09, there're at least two ways.
    1. copy the chart and paste to preview with `New from clipboard`, although this has some bugs on the chart format
    2. Copy to pages, export as RTFD, and extract the pdf in the package.
    However, when upgraded to the new iWork,
    these two ways are ruled out.
    1. Seems preview doesn't recognize the new format of the iwork content, so `New from clipboard` results in a blurry image instead of a vectorgraph like pdf.
    2. The exporting to RTFD functionality has been removed.
    I don't understand why apple is doing this, and I wonder is there any proper way to export to a high-resolution PDF from the charts?

    Print the page/sheet and select "Print PDF to Preview" instead of actually printing. 
    In Preview, use the rectangular selection tool to select the chart
    Copy
    New from Clipboard
    That will create a PDF vector image of the chart. It is a few more steps than in Numbers '09 but it does give you all the pieces of the chart (unlike Numbers '09),

  • Proper way to make bulk changes the Owner ID, Path and file share credentials for my existing subscriptions, ExtensionSettings

    We are going through with an upgrade/migration to SSRS 2012 and moving everything to a different domain. We have about 200 active subscriptions running, the reports are being delivered to a file share.  What is the correct way, in bulk, to change
    the OwnerId, the Path and the FileShare Username password credentials for these subscriptions?  I see these values are being stored in Subscriptions > ExtensionSettings.  I see that the file share path and Owner wouldn't be a problem to change,
    but since I see the file share credentials are encrypted I would not be able change them directly in ExtensionSettings.  Anyone know the proper way to change the Owner ID, Path and file share credentials for my existing subscriptions without having to
    change each one of them manually in the report manager?
    Note: Reporting Services Native upgrade from SSRS 2005 to SSRS 2012.
    Thanks in advance.

    Hi Cygnus46,
    Based on my understanding, you want to change the Owner ID, Path and file share credentials for all existing subscriptions.
    In Reporting Services, the subscription information are stored in the Report Server database. In your scenario, you can go to report server database and run the query to list all the subscriptions, then modify the owner and fileshare paths in the subscriptions
    table. For more information, please refer to this article: Tip: Change the Owner of SQL Reporting Services Subscription. If you want to change
    the file share credentials for subscriptions, you can run the query provided by
    wiperzeus from this similar thread:
    Windows File Share Delivery/ SSRS 2008 R2.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • What is proper way to report suggestions for app features And bugs to Apple

    What is the proper way to report suggestions for app features to Apple? Or, do they even want suggestions?
    And, how about reporting app bugs? Should I just assume the bug is already known, or is there a way for (quickly) reporting them?

    I'm not sure about bugs in non-Apple apps, but bugs in Apple apps can be reported via this form:
    http://www.apple.com/feedback/ipad.html

  • [SOLVED] Looking for a terminal command or key binding to exit Openbox

    I've searched the forums and googled, but I haven't been able to find the answer.  I'm sure I've missed it somewhere...
    I start my openbox session with 'startx' from the command line. I would like a terminal command or a key-binding to be able to exit openbox and return to the command line. I just don't like using the menu with my notebooks touchpad.  I just can't seem to figure out what command is used. The menu.xml file lists the command as "Exit", but typing that in a terminal just exits the terminal.
    Any help appreciated.
    Last edited by badfrog88 (2010-09-05 19:08:43)

    gorky wrote:ctrl-alt-backspace won't do the job?
    IIRC, it's disabled by default in xorg-server 1.7 and newer.
    @ badfrog88
    Ctrl + C will kill (almost) any running app you point it to.
    Last edited by karol (2010-09-05 19:17:29)

  • Integrated Iviews in portal to set in proper way.

    Hi Experts,
    I integrated URL,webdynpro,Transactional,Bw&BSP iviews into the portal.
    Here my question is how to set these iviews in a proper way. i mean i need to give first priority to Transactional iview.then webdynpro,BSP,BW and Url iview.
    I heard that there is a sorting option to get this but i didnt get that address.
    can anyone suggest me to solve this.
    Thanks
    Sreenivas.

    Sreeni,
    You can use sort priority property to arrange the objects. The sort priority is by default numbers between 0 and 100.
    Set the least number to the iview/Workset/Role if you want display them first.
    Make sure that you are setting  sort priority to the corresponding level to arrange them example:
    For example, if you have two roles Role1 and Role2 and each of them havingTwo worksets WS1 and WS2 then, Least sort priority should set to Role2 if you want to display Role2 first over Role1.
    If you want to display WS2 first over WS1 then the least sory priority should set to WS2 .
    Ram

  • Proper way to Connect to Automatically Connect to SSH Server

    What is the proper way to automatically connect to an ssh server via applescript?
    I've tried a variety of different things, none of them seemed to have worked yet... I've searched Google for quite awhile, and was wondering if anyone could please shed some light.
    1. do shell script "ssh user@hostname"
    Error Msg: Pseudo-terminal will not be allocated because stdin in not a terminal
    2. do shell script "ssh -t -t user@hostname"
    Error Msg: None; However it doesn't allow me to put a password in
    3. do shell script "ssh user@hostname > /dev/null &"
    Error Msg: None; Same as above
    4. tell application "Terminal"
    do script "stty -echo"
    do script "ssh user@hostname"
    end tell
    Error Msg: None. Popups a terminal window for user to enter password
    I've been using password prompt box, for the user to enter a password and would like a way to pass it directly to ssh terminal running in the background.
    I've also though about using SSH RSA keypairs the only way to accomplish this (no login regquired) but would prefer to use user/password authentication rather than trusted RSA keypairs.

    I am trying to setup an automated port forward through ssh -L and run it in the background for someone who has no idea what ssh is..
    Then either Terminal.app or private keys are your option.
    Could you shed some light on why RSA private keys are more secure? Because can't they be used by any user on that machine?
    Not unless you set it up wrong.
    SSH keys require two matching pieces of information - a private key (normally stored in the .ssh directory in your home directory) and a matching public key stored in the authorized_keys file in the .ssh directory of the home directory of the account you're logging in as.
    These two pieces of data have to match and since they're in the home directories of the respective accounts, they are only accessible to the specific user and not everyone.
    Whereas password authentication requires it to typed in.
    And if it's wrong (e.g. a hacker guesses incorrectly) he can try again, and again, and again until he either gets bored (not likely since he's probably using an automated script anyway) or he gets lucky and gets in.
    People are notoriously bad at selecting passwords. All too often passwords are weak and can be broken via simple dictionary attacks (try combinations of common dictionary words) or social engineering techniques. Public keys cannot be broken in such way (or, at least, the brute force attack is estimated to take the average hacker several years to break through).
    There are also trojan keylogger applications (more common on Windows, of course) - these have the ability to record every keystroke made on the system, which makes it easy to capture someone's password any time they type it.

Maybe you are looking for