SHA256
1
0
forked from pool/krusader
krusader/krusader_root_mode.patch

20 lines
997 B
Diff

Index: krusader-2.0.0-beta1/krusader/krslots.cpp
===================================================================
--- krusader-2.0.0-beta1.orig/krusader/krslots.cpp
+++ krusader-2.0.0-beta1/krusader/krslots.cpp
@@ -544,11 +544,11 @@ void KRslots::rootKrusader()
KMessageBox::sorry( krApp, i18n( "Can't start root mode krusader, because krusader or kdesu is missing from the path. Please configure the dependencies in Konfigurator!" ) );
return;
}
-
+
KProcess proc;
proc << KrServices::fullPathName( "kdesu" ) << KrServices::fullPathName( "krusader" )
- << "--left=" + MAIN_VIEW->left->func->files()->vfs_getOrigin().url()
- << "--right=" + MAIN_VIEW->right->func->files()->vfs_getOrigin().url();
+ + " --left=" + MAIN_VIEW->left->func->files()->vfs_getOrigin().url()
+ + " --right=" + MAIN_VIEW->right->func->files()->vfs_getOrigin().url();
if (!proc.startDetached())
KMessageBox::error(0,i18n("Error executing %1!", proc.program()[0]));