I want to create a quicklist for Ubuntu Tweak on my Unity launcher, but I'm having trouble getting started. Can anyone help?


Question: How to check if a bash command has been executed successfully
Answer: You can do this:

import System

main = do
  result &lt;- system "ls"
  case result of
    ExitSuccess -&gt;
      putStrLn "Ran successfully"
    ExitFailure code -&gt;
      putStrLn $ "Failed with exit code " ++ show code