71

I know about unity --reset command. But how can I simply restart Unity without resetting its profile?

Jorge Castro
  • 73,717
Yuriy Voziy
  • 1,105

5 Answers5

80

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
Jjed
  • 14,064
Oli
  • 299,380
7

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.

1angdon
  • 111
5

killall -USR1 unity will restart it in an account (USR1) where you have not changed your killall defaults.

1

Another alternative that works is

pkill --signal USR1 unity
freethinker
  • 1,170
0
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.

Cutton Eye
  • 1,256