--- a/src/disks.cpp +++ b/src/disks.cpp @@ -93,7 +93,7 @@ int DiskEntry::mount() { // generate default mount cmd if ( getuid()!=0 ) // user mountable { - cmdS = QStringLiteral( "mount %d" ); + cmdS = QStringLiteral( "udisksctl mount -b %d" ); } else // root mounts with all params/options { @@ -121,7 +121,16 @@ int DiskEntry::umount() qCDebug(KDF) << "umounting"; QString cmdS = umntcmd; if ( cmdS.isEmpty() ) // generate default umount cmd - cmdS = QStringLiteral( "umount %d" ); + { + if ( getuid()!=0 ) // user mountable + { + cmdS = QStringLiteral( "udisksctl unmount -b %d" ); + } + else // root mounts with all params/options + { + cmdS = QStringLiteral( "umount %d" ); + } + } cmdS.replace( QLatin1String( "%d" ), deviceName() ); cmdS.replace( QLatin1String( "%m" ), mountPoint() );