Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

1  
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
add comment

1 Answer 1

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]
Name=Ubuntu
Comment=This session logs you into Ubuntu
Exec=gnome-session --session=ubuntu
TryExec=unity
Icon=
Type=Application
X-Ubuntu-Gettext-Domain=gnome-session-3.0

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
add comment

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