summaryrefslogtreecommitdiffstats
path: root/libkonq
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-02-20 11:52:37 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-02-20 12:12:39 +0900
commit7beece73177f7d3ee6190f63864a1d29a6c8777f (patch)
tree3970ae01f4b063798299fd323263b79cbc5b089d /libkonq
parentea52c20448639ce5f07a0504a2f7146222eaecbe (diff)
downloadtdebase-7beece73177f7d3ee6190f63864a1d29a6c8777f.tar.gz
tdebase-7beece73177f7d3ee6190f63864a1d29a6c8777f.zip
Make sure to use default file manager when opening medias from kdesktop icons.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 6cfa9a1253ed5e0fdf99498465fdc1868ef7984c)
Diffstat (limited to 'libkonq')
-rw-r--r--libkonq/tdefileivi.cc13
1 files changed, 1 insertions, 12 deletions
diff --git a/libkonq/tdefileivi.cc b/libkonq/tdefileivi.cc
index 2e23cfbf7..fa3a9557b 100644
--- a/libkonq/tdefileivi.cc
+++ b/libkonq/tdefileivi.cc
@@ -386,18 +386,7 @@ void KFileIVI::returnPressed()
if ( static_cast<KonqIconViewWidget*>(iconView())->isDesktop() ) {
KURL url = m_fileitem->url();
if (url.protocol() == "media") {
- // The user reasonably expects to be placed within the media:/ tree
- // when opening a media device from the desktop
- KService::Ptr service = KService::serviceByDesktopName("konqueror");
- if (service) {
- // HACK
- // There doesn't seem to be a way to prevent KRun from resolving the URL to its
- // local path, so simpy launch Konqueror with the correct arguments instead...
- KRun::runCommand("konqueror " + url.url(), "konqueror", service->icon());
- }
- else {
- (void) new KRun( url, m_fileitem->mode(), m_fileitem->isLocalFile() );
- }
+ (void) new KRun( url, m_fileitem->mode(), m_fileitem->isLocalFile() );
}
else {
// When clicking on a link to e.g. $HOME from the desktop, we want to open $HOME