Fixed obnoxious bug where a new ~/Desktop dir would be created with read-only

files (including a RO .directory), which prevented certain changes, like moving
icons around, from persisting to next session. <Aaarrgh> They used system("cp
file1 file2") to create the new dirs. </Aaarrgh>

PORTREVISION was bumped on this one, since it is a significant fix, and it
does affect installation of files (in the user's $HOME).

PR:		39980
This commit is contained in:
Alan Eldridge 2002-07-18 11:16:37 +00:00
parent 4df3db8d41
commit ab69db3c08
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63186
14 changed files with 161 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES?= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src

View file

@ -0,0 +1,22 @@
--- kdesktop/init.cc.orig Fri Oct 12 15:11:13 2001
+++ kdesktop/init.cc Thu Jul 18 06:48:59 2002
@@ -80,6 +80,9 @@
QFile::encodeName(locate("data", QString("kdesktop/") + fileName)).data(),
QFile::encodeName(dir).data() );
system( cmd );
+ cmd.sprintf( "chmod 644 %s/.directory",
+ QFile::encodeName(dir).data() );
+ system( cmd );
}
}
@@ -106,6 +109,9 @@
cmd += "' '";
cmd += QFile::encodeName(desktopPath + desk.readName());
cmd += "'";
+ system( cmd );
+ cmd.sprintf("chmod 644 '%s'",
+ QFile::encodeName(desktopPath + desk.readName()).data());
system( cmd );
}
}

View file

@ -7,6 +7,7 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES?= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src

View file

@ -0,0 +1,22 @@
--- kdesktop/init.cc.orig Fri Oct 12 15:11:13 2001
+++ kdesktop/init.cc Thu Jul 18 06:48:59 2002
@@ -80,6 +80,9 @@
QFile::encodeName(locate("data", QString("kdesktop/") + fileName)).data(),
QFile::encodeName(dir).data() );
system( cmd );
+ cmd.sprintf( "chmod 644 %s/.directory",
+ QFile::encodeName(dir).data() );
+ system( cmd );
}
}
@@ -106,6 +109,9 @@
cmd += "' '";
cmd += QFile::encodeName(desktopPath + desk.readName());
cmd += "'";
+ system( cmd );
+ cmd.sprintf("chmod 644 '%s'",
+ QFile::encodeName(desktopPath + desk.readName()).data());
system( cmd );
}
}

View file

@ -7,6 +7,7 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES?= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src

View file

@ -0,0 +1,22 @@
--- kdesktop/init.cc.orig Fri Oct 12 15:11:13 2001
+++ kdesktop/init.cc Thu Jul 18 06:48:59 2002
@@ -80,6 +80,9 @@
QFile::encodeName(locate("data", QString("kdesktop/") + fileName)).data(),
QFile::encodeName(dir).data() );
system( cmd );
+ cmd.sprintf( "chmod 644 %s/.directory",
+ QFile::encodeName(dir).data() );
+ system( cmd );
}
}
@@ -106,6 +109,9 @@
cmd += "' '";
cmd += QFile::encodeName(desktopPath + desk.readName());
cmd += "'";
+ system( cmd );
+ cmd.sprintf("chmod 644 '%s'",
+ QFile::encodeName(desktopPath + desk.readName()).data());
system( cmd );
}
}

View file

@ -7,6 +7,7 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES?= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src

View file

@ -0,0 +1,22 @@
--- kdesktop/init.cc.orig Fri Oct 12 15:11:13 2001
+++ kdesktop/init.cc Thu Jul 18 06:48:59 2002
@@ -80,6 +80,9 @@
QFile::encodeName(locate("data", QString("kdesktop/") + fileName)).data(),
QFile::encodeName(dir).data() );
system( cmd );
+ cmd.sprintf( "chmod 644 %s/.directory",
+ QFile::encodeName(dir).data() );
+ system( cmd );
}
}
@@ -106,6 +109,9 @@
cmd += "' '";
cmd += QFile::encodeName(desktopPath + desk.readName());
cmd += "'";
+ system( cmd );
+ cmd.sprintf("chmod 644 '%s'",
+ QFile::encodeName(desktopPath + desk.readName()).data());
system( cmd );
}
}

View file

@ -7,6 +7,7 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES?= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src

View file

@ -0,0 +1,22 @@
--- kdesktop/init.cc.orig Fri Oct 12 15:11:13 2001
+++ kdesktop/init.cc Thu Jul 18 06:48:59 2002
@@ -80,6 +80,9 @@
QFile::encodeName(locate("data", QString("kdesktop/") + fileName)).data(),
QFile::encodeName(dir).data() );
system( cmd );
+ cmd.sprintf( "chmod 644 %s/.directory",
+ QFile::encodeName(dir).data() );
+ system( cmd );
}
}
@@ -106,6 +109,9 @@
cmd += "' '";
cmd += QFile::encodeName(desktopPath + desk.readName());
cmd += "'";
+ system( cmd );
+ cmd.sprintf("chmod 644 '%s'",
+ QFile::encodeName(desktopPath + desk.readName()).data());
system( cmd );
}
}

View file

@ -7,6 +7,7 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES?= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src

View file

@ -0,0 +1,22 @@
--- kdesktop/init.cc.orig Fri Oct 12 15:11:13 2001
+++ kdesktop/init.cc Thu Jul 18 06:48:59 2002
@@ -80,6 +80,9 @@
QFile::encodeName(locate("data", QString("kdesktop/") + fileName)).data(),
QFile::encodeName(dir).data() );
system( cmd );
+ cmd.sprintf( "chmod 644 %s/.directory",
+ QFile::encodeName(dir).data() );
+ system( cmd );
}
}
@@ -106,6 +109,9 @@
cmd += "' '";
cmd += QFile::encodeName(desktopPath + desk.readName());
cmd += "'";
+ system( cmd );
+ cmd.sprintf("chmod 644 '%s'",
+ QFile::encodeName(desktopPath + desk.readName()).data());
system( cmd );
}
}

View file

@ -7,6 +7,7 @@
PORTNAME= kdebase
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 1
CATEGORIES?= x11 kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src

View file

@ -0,0 +1,22 @@
--- kdesktop/init.cc.orig Fri Oct 12 15:11:13 2001
+++ kdesktop/init.cc Thu Jul 18 06:48:59 2002
@@ -80,6 +80,9 @@
QFile::encodeName(locate("data", QString("kdesktop/") + fileName)).data(),
QFile::encodeName(dir).data() );
system( cmd );
+ cmd.sprintf( "chmod 644 %s/.directory",
+ QFile::encodeName(dir).data() );
+ system( cmd );
}
}
@@ -106,6 +109,9 @@
cmd += "' '";
cmd += QFile::encodeName(desktopPath + desk.readName());
cmd += "'";
+ system( cmd );
+ cmd.sprintf("chmod 644 '%s'",
+ QFile::encodeName(desktopPath + desk.readName()).data());
system( cmd );
}
}