From 7857b50140791f60497ab7e8994af3f4377cc387 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 12:06:23 +0900 Subject: Removed obsolete Mandriva 2010 packaging files. Signed-off-by: Michele Calgaro (cherry picked from commit 40be1ebef7a688235d4730561908a02f10505385) --- .../kdegraphics-3.5.12-ksnapshot-use-xdg-dir.patch | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-ksnapshot-use-xdg-dir.patch (limited to 'mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-ksnapshot-use-xdg-dir.patch') diff --git a/mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-ksnapshot-use-xdg-dir.patch b/mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-ksnapshot-use-xdg-dir.patch deleted file mode 100644 index 8565ff3d4..000000000 --- a/mandriva/2010.2/kdegraphics/kdegraphics-3.5.12-ksnapshot-use-xdg-dir.patch +++ /dev/null @@ -1,52 +0,0 @@ ---- ksnapshot/ksnapshot.cpp.orig 2007-11-28 22:13:20.000000000 +0800 -+++ ksnapshot/ksnapshot.cpp 2007-11-28 22:21:29.000000000 +0800 -@@ -41,6 +41,8 @@ - #include - #include - #include -+#include -+#include - - #include - -@@ -58,6 +60,31 @@ - - #define kApp KApplication::kApplication() - -+// helper function for reading xdg user dirs: it is required in order to take -+// care of locale stuff -+TQString readXdgUserDirs() -+{ -+ TQFile f( TQDir::homeDirPath() + "/.config/user-dirs.dirs" ); -+ -+ TQString picturesDir = TQDir::currentDirPath(); -+ if (!f.open(IO_ReadOnly)) -+ return(picturesDir); -+ -+ // set the codec for the current locale -+ TQTextStream s(&f); -+ s.setCodec( TQTextCodec::codecForLocale() ); -+ -+ TQString line = s.readLine(); -+ while (!line.isNull()) -+ { -+ if (line.startsWith("XDG_PICTURES_DIR=")) -+ picturesDir = line.remove("XDG_PICTURES_DIR=").remove("\"").replace("$HOME", QDir::homeDirPath()); -+ -+ line = s.readLine(); -+ } -+ return(picturesDir); -+} -+ - KSnapshot::KSnapshot(TQWidget *parent, const char *name, bool grabCurrent) - : DCOPObject("interface"), - KDialogBase(parent, name, true, TQString::null, Help|User1, User1, -@@ -99,7 +126,7 @@ - mainWidget->setDelay(conf->readNumEntry("delay",0)); - mainWidget->setMode( conf->readNumEntry( "mode", 0 ) ); - mainWidget->setIncludeDecorations(conf->readBoolEntry("includeDecorations",true)); -- filename = KURL::fromPathOrURL( conf->readPathEntry( "filename", TQDir::currentDirPath()+"/"+i18n("snapshot")+"1.png" )); -+ filename = KURL::fromPathOrURL( conf->readPathEntry( "filename", readXdgUserDirs()+"/"+i18n("snapshot")+"1.png" )); - - // Make sure the name is not already being used - while(KIO::NetAccess::exists( filename, false, this )) { -- cgit v1.2.1