2

So every once in a while compiz will crash, sometimes randomly, more often when I'm messing with the compiz settings.

I can restart compiz with compiz --replace, and it fixes the window decoration, etc., but that command never finishes in the terminal. If I close the terminal or ctrl-C, it causes compiz to crash all over. So the only thing I can do is just leave that terminal running (not a great solution).

enzotib
  • 93,831
chrismarx
  • 933

3 Answers3

7

This is the normal expected behaviour. If you hit CTRL+C compiz will stop. If you want to detach some command from the terminal (so it will not terminate with the terminal, and it will allow you to continue to use it) you can use nohup, like this:

nohup compiz --replace

There is much more info in this question.

Javier Rivera
  • 35,153
  • 1
    Personally, I just hit CTRL+ALT+F1, launch compiz in the console and keep it running in the foreground there, that way I can check the output. – Javier Rivera Aug 02 '11 at 15:16
  • That definitely answered my question, but as an aside, some compiz crashes so bad, the shortcut key to open a terminal is shot too. i know that I can open up a virtual terminal, and use DISPLAY=:0 compiz --replace, but this doest work with my dual monitors, it seems to reset things so everthing is on one monitor. you know the right command to make this work? – chrismarx Aug 02 '11 at 18:33
  • Sorry but no. I also use dual monitor (well the laptop lid and a external monitor) and compiz --replace keeps my settings (I'm still using both monitors, programs stay where they should) when I do it. The problem likely lies somewhere else. – Javier Rivera Aug 03 '11 at 06:51
2

You can also use the Compiz Fusion Icon, which can easily be installed by dropping in a terminal the next:

sudo apt-get install fusion-icon

And after providing your password the fusion icon will be installed and a shortcut can be reached inside of the "System Tools" menu in the majority of the cases, if not, in a terminal drop the next:

fusion-icon

and in the Fusion Icon menu (right click), choose "Reload window manager" in order to force Compiz to reload, after which all your compiz features will get enabled and should not break after closing the Fusion Icon (even from Terminal).

enter image description here

Good Luck!

  • i will try this, but unfortunately, I dont think this will be a good solution, because when compiz crashes, it usually takes the system bar with it, so i wouldnt be able to restart from that button – chrismarx Aug 02 '11 at 18:29
  • Then you are experiencing a kind of major issue with something else, try using cairo-dock's compiz gadget or anything else that allow you gain access to these features, and try updating/upgrading your system/compiz, may I suggest to remove compiz and reinstall it? Your comments on this and your accepted answer leads to think something's wrong with your system... Please inform if you succeed... – Geppettvs D'Constanzo Aug 02 '11 at 21:13
  • i mainly noticed compiz crashes when i was changing settings, ever since making the main compiz changes, I haven't had to change much and i haven't been seeing crashes- – chrismarx Aug 11 '11 at 17:41
2

You can use this as an alternative to nohup: compiz --replace &

Marco Ceppi
  • 48,101