Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to check if metacity is running?

    Lately sometimes metacity dosn't get startet. I've to open a terminal to start it manually. Is there a way to create a script which checks if metacity got started and if not the script will do it for me?

  2. #2
    Linux User
    Join Date
    Jan 2007
    provided X is already started, but no other window
    manager is running, try this:

    if ! `ps -a | grep -s metacity`
    then exec metacity
    the sun is new every day (heraclitus)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts