Группа :: Сети/Прочее
Пакет: smb4k
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: smb4k-0.6.4-alt-mount-path.patch
diff -uNr smb4k-0.6.4.orig/smb4k/core/smb4kmounter.cpp smb4k-0.6.4/smb4k/core/smb4kmounter.cpp
--- smb4k-0.6.4.orig/smb4k/core/smb4kmounter.cpp 2005-10-20 18:38:01 +1300
+++ smb4k-0.6.4/smb4k/core/smb4kmounter.cpp 2005-10-20 18:38:01 +1300
@@ -197,7 +197,7 @@
void Smb4KMounter::import()
{
m_config->setGroup( "Mount Options" );
- QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/smb4k/" ) );
+ QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/mnt/" ) );
#ifndef __FreeBSD__
@@ -438,7 +438,7 @@
m_config->setGroup( "Mount Options" );
bool remount = m_config->readBoolEntry( "Mount Recent", false );
bool unmount_on_exit = m_config->readBoolEntry( "Unmount All", false );
- QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/smb4k/" ) );
+ QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/mnt/" ) );
m_lastJob = true;
@@ -525,7 +525,7 @@
m_filesystem = m_config->readEntry( "Mount Filesystem", "smbfs" );
m_config->setGroup( "Mount Options" );
- QString mount_prefix = m_config->readPathEntry( "Default Path", QDir::homeDirPath().append( "/smb4k/" ) );
+ QString mount_prefix = m_config->readPathEntry( "Default Path", QDir::homeDirPath().append( "/mnt/" ) );
bool lowercase = m_config->readBoolEntry( "Force Lowercase", false );
m_workgroup = workgroup.stripWhiteSpace();
@@ -767,7 +767,7 @@
m_config->setGroup( "Mount Options" );
bool allow_unmount_foreign = m_config->readBoolEntry( "Unmount Foreign", false );
- QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/smb4k/" ) );
+ QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/mnt/" ) );
m_config->setGroup( "Samba" );
QString filesystem = m_config->readEntry( "Mount Filesystem", "smbfs" );
@@ -853,7 +853,7 @@
m_config->setGroup( "Mount Options" );
bool allow_unmount_foreign = m_config->readBoolEntry( "Unmount Foreign", false );
- QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/smb4k/" ) );
+ QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/mnt/" ) );
m_config->setGroup( "Samba" );
QString filesystem = m_config->readEntry( "Mount Filesystem", "smbfs" );
@@ -977,7 +977,7 @@
QString suid_program = m_config->readEntry( "SUID Program", QString::null );
m_config->setGroup( "Mount Options" );
- QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/smb4k/" ) );
+ QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/mnt/" ) );
if ( !m_lastJob )
{
@@ -1255,7 +1255,7 @@
void Smb4KMounter::processUnmount()
{
m_config->setGroup( "Mount Options" );
- QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/smb4k/" ) );
+ QString mount_prefix = m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/mnt/" ) );
if ( m_proc->normalExit() )
{
diff -uNr smb4k-0.6.4.orig/smb4k/widgets/smb4koptionsdlg.cpp smb4k-0.6.4/smb4k/widgets/smb4koptionsdlg.cpp
--- smb4k-0.6.4.orig/smb4k/widgets/smb4koptionsdlg.cpp 2005-07-04 04:09:25 +1300
+++ smb4k-0.6.4/smb4k/widgets/smb4koptionsdlg.cpp 2005-07-04 04:09:25 +1300
@@ -605,7 +605,7 @@
// Mount options
//
m_config->setGroup( "Mount Options" );
- m_sharePage->m_defaultPath->lineEdit()->setText( m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/smb4k/" ) ) );
+ m_sharePage->m_defaultPath->lineEdit()->setText( m_config->readEntry( "Default Path", QDir::homeDirPath().append( "/mnt/" ) ) );
m_sharePage->m_unmountAll->setChecked( m_config->readBoolEntry( "Unmount All", false ) );
m_sharePage->m_mountRecent->setChecked( m_config->readBoolEntry( "Mount Recent", false ) );
m_sharePage->m_allowUnmountForeign->setChecked( m_config->readBoolEntry( "Unmount Foreign", false ) );