Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 601353 Details for
Bug 844500
terminal programs in KDE start in the wrong directory
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
The file showing where I think changes should be made
kinit.cpp (text/plain), 1.55 KB, created by
bugz
on 2012-07-30 23:03:08 UTC
(
hide
)
Description:
The file showing where I think changes should be made
Filename:
MIME Type:
Creator:
bugz
Created:
2012-07-30 23:03:08 UTC
Size:
1.55 KB
patch
obsolete
>// The following code, from kdelibs-4.3.4/kinit/kinit.cpp line 506, is mistaken. >// It has the ruinous side efect that shells in terminal programs such as >// koneole, xterm and so on are started in users' Documents whereas login terminals >// and comminucation programs such as ssh start them in user´s home directories. >// Personally, I can think of a good reason to start any program in a user's >// Documents directory, but where that is a program´s expecation, then it should >// be a configuration item. >// >// Programs´ behaviour should not depend on the ruling Desktop Environment. >// >// >case 0: > { > /** Child **/ > close(d.fd[0]); > close_fds(); > > // Try to chdir, either to the requested directory or to the user's document path by default. > // We ignore errors - if you write a desktop file with Exec=foo and Path=/doesnotexist, > // we still want to execute `foo` even if the chdir() failed. > if (cwd && *cwd) { > (void)chdir(cwd); > } else { > const QByteArray docPath = QFile::encodeName(KGlobalSettings::documentPath()); > (void)chdir(docPath.constData()); > } > > if( reset_env ) // KWRAPPER/SHELL > { > > QList<QByteArray> unset_envs; > for( int tmp_env_count = 0; > environ[tmp_env_count]; > tmp_env_count++) > unset_envs.append( environ[ tmp_env_count ] ); > foreach(const QByteArray &tmp, unset_envs) > { > int pos = tmp.indexOf( '=' ); > if( pos >= 0 ) > unsetenv( tmp.left( pos )); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 844500
: 601353