Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37858652
en ru br
ALT Linux repositórios
S:23.04.3-alt1

Group :: Desktop gráfico/KDE
RPM: kde5-kdf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: alt-mount.patch
Download


--- 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() );
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009