summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/applications/kiosktool/debian/patches
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-28 14:13:18 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-28 14:13:18 -0500
commit4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6 (patch)
treec6f53decaabed9678523a8bbd6a1000a9f3bf78f /ubuntu/raring/applications/kiosktool/debian/patches
parent211d261d7778de1d9a773e7ec43a4e97b4bd7e57 (diff)
downloadtde-packaging-4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6.tar.gz
tde-packaging-4bc22e8b188aa26df8b1a23c39bb0f3c5b05b8b6.zip
Split raring packaging into new directory due to defoma changes
Diffstat (limited to 'ubuntu/raring/applications/kiosktool/debian/patches')
-rw-r--r--ubuntu/raring/applications/kiosktool/debian/patches/kubuntu_02_kmenu.diff13
-rw-r--r--ubuntu/raring/applications/kiosktool/debian/patches/kubuntu_03_sudo_support.diff157
2 files changed, 170 insertions, 0 deletions
diff --git a/ubuntu/raring/applications/kiosktool/debian/patches/kubuntu_02_kmenu.diff b/ubuntu/raring/applications/kiosktool/debian/patches/kubuntu_02_kmenu.diff
new file mode 100644
index 000000000..77f7d912f
--- /dev/null
+++ b/ubuntu/raring/applications/kiosktool/debian/patches/kubuntu_02_kmenu.diff
@@ -0,0 +1,13 @@
+--- kiosktool/kiosktool/menueditComponent.cpp 2005-04-25 09:46:33.000000000 +0000
++++ kiosktool/kiosktool/menueditComponent.cpp 2005-12-18 14:45:26.000000000 +0000
+@@ -104,8 +104,8 @@
+ {
+ bool result;
+ TQString menuEditFile = KioskRun::self()->locateLocal("xdgconf-menu", "applications-kmenuedit.menu");
+- TQString menuFile = KioskRun::self()->locate("xdgconf-menu", "applications.menu");
+- TQString menuFileSave = KioskRun::self()->locateSave("xdgconf-menu", "applications.menu");
++ TQString menuFile = KioskRun::self()->locate("xdgconf-menu", "kde-applications.menu");
++ TQString menuFileSave = KioskRun::self()->locateSave("xdgconf-menu", "kde-applications.menu");
+
+ kdDebug() << "MenuEditComponent: menuEditFile = " << menuEditFile << endl;
+ kdDebug() << "MenuEditComponent: menuFile = " << menuFile << endl;
diff --git a/ubuntu/raring/applications/kiosktool/debian/patches/kubuntu_03_sudo_support.diff b/ubuntu/raring/applications/kiosktool/debian/patches/kubuntu_03_sudo_support.diff
new file mode 100644
index 000000000..1ee900501
--- /dev/null
+++ b/ubuntu/raring/applications/kiosktool/debian/patches/kubuntu_03_sudo_support.diff
@@ -0,0 +1,157 @@
+--- kiosktool/kiosktool/kioskrun.h 2005-04-25 10:46:33.000000000 +0100
++++ kiosktool/kiosktool/kioskrun.h 2007-07-18 17:47:04.000000000 +0100
+@@ -37,6 +37,18 @@
+
+ class KioskGui;
+
++class NETACCESS {
++ public:
++ static bool exists(const KURL &url, bool source, TQWidget *window);
++ static bool mkdir(const KURL &url, TQWidget *window, int permissions=-1);
++ static TQString lastErrorString();
++ static int lastError();
++ static bool file_copy (const KURL &src, const KURL &dest, int permissions=-1, bool overwrite=false, bool resume=false, TQWidget *window=0L);
++ static bool del(const KURL &url, TQWidget *window);
++ static bool file_move(const KURL &src, const KURL &target, int permissions=-1, bool overwrite=false, bool resume=false, TQWidget *window=0L);
++ static bool copy(const KURL &src, const KURL &target, TQWidget *window);
++};
++
+ class KioskRun : public TQObject
+ {
+ friend class KioskGui;
+--- kiosktool/kiosktool/kioskrun.cpp 2005-04-25 10:46:33.000000000 +0100
++++ kiosktool/kiosktool/kioskrun.cpp 2007-07-20 16:56:07.000000000 +0100
+@@ -28,6 +28,7 @@
+
+ #include <tqdir.h>
+ #include <tqfile.h>
++#include <tqprocess.h>
+
+ #include <tdeapplication.h>
+ #include <tdecmdlineargs.h>
+@@ -45,10 +46,124 @@
+ #include "kiosksync.h"
+
+ #include <tdeio/netaccess.h>
+-#define NETACCESS TDEIO::NetAccess
++// Kiosktool wants to use fish://root@localhost/... which won't work on Kubuntu because we don't run ssh by default, we don't allow ssh to do root logins and root doesn't even have a password, so implement the functions here for local copies using tdesu instead
++// #define NETACCESS TDEIO::NetAccess
+
+ #undef DEBUG_ENTRIES
+
++bool NETACCESS::exists(const KURL &url, bool source, TQWidget *window)
++{
++ if (url.protocol() == "fish" && url.host() == "localhost") {
++ bool exists = TQFile::exists(url.path());
++ return exists;
++ } else {
++ bool result = TDEIO::NetAccess::exists(url, source, window);
++ return result;
++ }
++}
++
++bool NETACCESS::mkdir(const KURL &url, TQWidget *window, int permissions)
++{
++ if (url.protocol() == "fish" && url.host() == "localhost") {
++ TQProcess proc;
++ proc.addArgument("tdesudo");
++ proc.addArgument("mkdir " + url.path());
++ TQByteArray buffer;
++ proc.launch(buffer);
++ while (!proc.normalExit()) {
++ TDEApplication::kapp->processEvents();
++ }
++ bool exists = TQFile::exists(url.path());
++ return exists;
++ } else {
++ bool result = TDEIO::NetAccess::mkdir(url, window, permissions);
++ return result;
++ }
++}
++
++TQString NETACCESS::lastErrorString()
++{
++ return "Error in Kiosktool Kubuntu modifications";
++}
++
++int NETACCESS::lastError()
++{
++ return 0;
++}
++
++bool NETACCESS::file_copy(const KURL &src, const KURL &dest, int permissions, bool overwrite, bool resume, TQWidget *window)
++{
++ if (dest.protocol() == "fish" && dest.host() == "localhost") {
++ TQProcess proc;
++ proc.addArgument("tdesudo");
++ proc.addArgument("cp " + src.path() + " " + dest.path());
++ TQByteArray buffer;
++ proc.launch(buffer);
++ while (!proc.normalExit()) {
++ TDEApplication::kapp->processEvents();
++ }
++
++ TQProcess proc2;
++ proc2.addArgument("tdesudo");
++ proc2.addArgument("chmod 0644 " + dest.path());
++ proc2.launch(buffer);
++ while (!proc2.normalExit()) {
++ TDEApplication::kapp->processEvents();
++ }
++
++ bool exists = TQFile::exists(dest.path());
++ return exists;
++ } else {
++ bool result = TDEIO::NetAccess::file_copy(src, dest, permissions, overwrite, resume, window);
++ return result;
++ }
++}
++
++bool NETACCESS::del(const KURL &url, TQWidget *window)
++{
++ if (url.protocol() == "fish" && url.host() == "localhost") {
++ TQProcess proc;
++ proc.addArgument("tdesudo");
++ proc.addArgument("rm " + url.path());
++ TQByteArray buffer;
++ proc.launch(buffer);
++ while (!proc.normalExit()) {
++ TDEApplication::kapp->processEvents();
++ }
++ bool exists = !TQFile::exists(url.path());
++ return exists;
++ } else {
++ bool result = TDEIO::NetAccess::del(url, window);
++ return result;
++ }
++}
++
++bool NETACCESS::file_move(const KURL &src, const KURL &target, int permissions, bool overwrite, bool resume, TQWidget *window)
++{
++ if (target.protocol() == "fish" && target.host() == "localhost") {
++ TQProcess proc;
++ proc.addArgument("tdesudo");
++ proc.addArgument("mv " + src.path() + " " + target.path());
++ TQByteArray buffer;
++ proc.launch(buffer);
++ while (!proc.normalExit()) {
++ TDEApplication::kapp->processEvents();
++ }
++
++ bool exists = TQFile::exists(target.path());
++ return exists;
++ } else {
++ bool result = TDEIO::NetAccess::file_move(src, target, permissions, overwrite, resume, window);
++ return result;
++ }
++}
++
++//only used for local files
++bool NETACCESS::copy(const KURL &src, const KURL &target, TQWidget *window)
++{
++ return TDEIO::NetAccess::copy(src, target, window);
++}
++
+ KioskRun *KioskRun::s_self = 0;
+
+ KioskRun::KioskRun( TQObject* parent, const char* name)