[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 271824] Dolphin runs scripts in a wrong working directory
From: David Faure <faure () kde ! org>
Date: 2011-10-06 8:22:24
Message-ID: E1RBjDk-0000IT-HK () bugs ! kde ! org
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=271824
--- Comment #15 from David Faure <faure kde org> 2011-10-06 08:22:23 ---
Well, since this is only meaningful for local files, I would say that KFileItem
could determine its parent directory all by itself, no need for an API change
nor for changes in Dolphin.
Just do
if (d->m_bIsLocalUrl) {
KUrl parent = url;
parent.setPath(parent.directory());
and pass parent.toLocalFile() to KRun.
}
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic