4

Why doesn't right-clicking and selecting "Open Terminal" in Desktop set the path of the terminal to the Desktop? On the other hand doing the same thing from other directories sets the path as expected.

pomsky
  • 68,507
Atinesh
  • 328

2 Answers2

0

This can be changed in dconf editor by changing org > gnome > nautilus > preferences > desktop-is-home-dir

Edit: It appears this functionality was removed with this code change in gnome-terminal

static inline gboolean
desktop_opens_home_dir (TerminalNautilus *nautilus)
{
#if 0
  return  _client_get_bool (gconf_client,
                                "/apps/nautilus-open-terminal/desktop_opens_home_dir",
                                NULL);
#endif
  return TRUE;
}

Source

Recently they appear to be changing this, but it's unclear if the functionality will return:

Source

  • 1
    Might indeed be a valid answer for 14.04. In later versions, this key does not anymore exist. However, does this not have the side effect that all your home folders appear on the desktop? – vanadium Oct 05 '18 at 17:15
  • You are right I was looking at a section of the source via grep and I didn't see that it was essentially commented out with an #if 0 – Kristopher Ives Oct 06 '18 at 03:39
0

Your Desktop is managed by your desktop environment, and not directly by your file manager, which is why you see two different results.

Your desktop environment (right-click > "Open Terminal") opens a terminal window at $HOME.

Your file manager (right-click > Open in Terminal) opens a terminal window at $PWD.

Tom Brossman
  • 13,111
  • 1
    Pardon me, but I'm not completely sure how technically correct this is. I always thought (as of now) the file manager (e.g. Nautilus) provides the desktop icons and most of the context menu (right-click menu) items. As an experiment if I end only the Nautilus process, I notice all the desktop icons vanish and so do most the items from the context menu including the "Open Terminal" one. – pomsky Oct 05 '18 at 10:58
  • Yes admittedly this is not a perfect explanation, but the "Desktop" and file icons are not handled in exactly the same way as the files within a Nautilus window (e.g. some wallpaper managers require disabling desktop file icons, context menus are slightly different, etc....). Happy for you to edit this one if you can give a more complete explanation? There are subtle differences that I've never fully understood and I would love to read a complete description some day. – Tom Brossman Oct 05 '18 at 12:01