Bug 496947
| Summary: | Incorrect default folder when opening a new tab | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mathieu Bridon <bochecha> |
| Component: | gnome-terminal | Assignee: | Behdad Esfahbod <behdad> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 11 | CC: | behdad, lsof, maxim, mclasen |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-01-14 18:06:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mathieu Bridon
2009-04-21 18:47:05 UTC
Related bug: http://bugzilla.gnome.org/show_bug.cgi?id=579291 Actually, those 2 bugs are not the same issue as the one I reported. Those 2 complain about the fact that new tabs are opened in the same folder as the tab you were in before opening the new one. I'm not complaining about that, I _love_ this behaviour. The issue here is that if it's not possible to chdir to this dir when opening the new tab (the x bit is not set), you're left in / when you should be left in $HOME. I'm guessing this bug stems from the fact that F-10 gnome-terminal (2.24.x) ran with cwd=$HOME:
home_dir = g_get_home_dir ();
if (home_dir)
g_chdir (home_dir);
gtk_main ();
2.26.x changed to cwd=/, due to http://bugzilla.gnome.org/show_bug.cgi?id=565328:
if (chdir ("/") < 0)
g_warning ("Failed to chdir to /: %s", g_strerror (errno));
gtk_main ();
Perhaps terminal_screen_launch_child should chdir() to the user's homedir before calling vte_terminal_fork_command() - then if vte_terminal_fork_command() fails to chdir(), we'll end up in $HOME instead of /.
I've reopened the upstream bug and added some comments there. Can you try gnome-terminal-2.26.1-2.fc11, which has the proposed upstream fix ? Just installed it. That fixes the first case I mentioned (tab1 as root then CTRL + SHIFT + T), but not the second one (tab1 as same user but in a folder you don't have exec permission). That's weird, we figured it was the same problem for both :-/ *** Bug 495910 has been marked as a duplicate of this bug. *** This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Still present with gnome-terminal-2.26.2-1.fc11.x86_64 Seems fixed in gnome-terminal-2.28.1-1.fc12.x86_64 As the initial reporter, I confirm both issues are fixed in F12 (same version as comment #11). mark as closed currentversion? |