Ubuntu – Ubuntu 16.04: ‘ Open in Terminal’ context menu on desktop opens it only in home directory

16.04command linecontext menunautilusnautilus-actions

  1. Since upgrade to Ubuntu 16.04, the desktop 'Open in Terminal' context menu opens only in home directory. It's realy uncomfortable.
    Is there a way to make it open with prompt in desktop directory ?

  2. Is there a way to set a 'nautilus action' to display in the desktop context menu too .


Best Answer

I have resolve the first point myself ;)

In fact, I want to open the terminal in the desktop only when I open it from desktop menu context or from the Unity Launcher.

So, all I have do is add this line at the end of my .bashrc:

[[ $PWD == $HOME ]] && cd $HOME/Desktop

With the question 1, I would like to know about a possible configuration point somewhere (i.e. dconf, nautilus-actions...).

Thank you for your answers.