I know about unity --reset
command.
But how can I simply restart Unity without resetting its profile?
-
4What about unity --replace?– Reda LazriMar 24, 2011 at 11:29
-
2What's the equivalent for Unity 2D? askubuntu.com/questions/52179/how-do-i-restart-unity-2d– typeJul 10, 2011 at 12:14
5 Answers
I don't use Unity but given what I know of its mechanics, this should work:
unity
You'll want to stick that in a run box (Alt+F2) rather than a terminal or it'll break when you exit the terminal.
If you want to run it from a terminal use:
setsid unity
-
2That's correct. Although, logging out and back in works better in my experience (I'm using Unity as my main desktop environment at this point)– jrgMar 24, 2011 at 14:15
-
8A good way to do it in a terminal, in case you want to see debug messages, is
setsid unity
. You can close the terminal when ever you like, but you'll still get the terminal output made by Unity. Mar 24, 2011 at 19:45 -
1If you want to run that in terminal without breaking it when you exit terminal, type: 'unity --replace &' Apr 27, 2011 at 17:41
-
2
-
using unity --replace have a tiny catch, you have to launch the menu once then only the left bar will auto-hide after restarted– d4v1dv00May 25, 2011 at 13:49
I found killall -u USR1 -r -g unity*
(optionally, with -i for interactive) to be more effective than @Andrew's answer. My only problem with this vs unity --replace
is that it will kill your session which unity --replace
doesn't do. So, reserve this for when it is severely broken.
killall -USR1 unity
will restart it in an account (USR1) where you have not changed your killall defaults.
unity
which starts a new GUI connected to your terminal. however, if you run this over SSH, ehm, this is probably not the best IDE, because your local desktop 'unity' instance is then bound to this terminal on your remote-desctop...
funny things occur, when you terminate this session. Step by step your GUI will vanish and the only thing which remains under your control is the pointer of your mouse.
I found this post really helpful, which sumarises the commands mentioned in other answers.