Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to create my own desktop environment and was working with sudo nautilus and i accidentally deleted .desktop entry for ubuntu 3d, help needed

share|improve this question

closed as too localized by John S Gruber, Tom Brossman, hexafraction, Ringtail, Mitch Oct 2 '12 at 9:41

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Your case is just a very good example of Why you shouldn't use nautilus with root power – Anwar Shah Oct 1 '12 at 13:15
up vote 5 down vote accepted

I assume you mean /usr/share/xsessions/ubuntu.desktop file.

Here is the contents of that file:

[Desktop Entry]
Comment=This session logs you into Ubuntu
Exec=gnome-session --session=ubuntu

Save it to /usr/share/xsessions/ubuntu.desktop and you have your session back. For editing purpose, you can use the TTY logins via Ctrl-Alt-F1 shortcut.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.