kate
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
--- a/kate/main.cpp
|
||||||
|
+++ b/kate/main.cpp
|
||||||
|
@@ -51,24 +51,9 @@
|
||||||
|
#include "qtsingleapplication/qtsingleapplication.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#ifndef Q_OS_WIN
|
||||||
|
-#include <unistd.h>
|
||||||
|
-#endif
|
||||||
|
-#include <iostream>
|
||||||
|
-
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
-#ifndef Q_OS_WIN
|
||||||
|
- /**
|
||||||
|
- * Check whether we are running as root
|
||||||
|
- **/
|
||||||
|
- if (getuid() == 0) {
|
||||||
|
- std::cout << "Executing Kate as root is not possible. To edit files as root use:" << std::endl;
|
||||||
|
- std::cout << "SUDO_EDITOR=kate sudoedit <file>" << std::endl;
|
||||||
|
- return 0;
|
||||||
|
- }
|
||||||
|
-#endif
|
||||||
|
/**
|
||||||
|
* init resources from our static lib
|
||||||
|
*/
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
|
||||||
|
--- a/kwrite/main.cpp
|
||||||
|
+++ b/kwrite/main.cpp
|
||||||
|
@@ -42,23 +42,8 @@
|
||||||
|
|
||||||
|
#include "../urlinfo.h"
|
||||||
|
|
||||||
|
-#ifndef Q_OS_WIN
|
||||||
|
-#include <unistd.h>
|
||||||
|
-#endif
|
||||||
|
-#include <iostream>
|
||||||
|
-
|
||||||
|
extern "C" Q_DECL_EXPORT int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
-#ifndef Q_OS_WIN
|
||||||
|
- /**
|
||||||
|
- * Check whether we are running as root
|
||||||
|
- **/
|
||||||
|
- if (getuid() == 0) {
|
||||||
|
- std::cout << "Executing KWrite as root is not possible. To edit files as root use:" << std::endl;
|
||||||
|
- std::cout << "SUDO_EDITOR=kwrite sudoedit <file>" << std::endl;
|
||||||
|
- return 0;
|
||||||
|
- }
|
||||||
|
-#endif
|
||||||
|
/**
|
||||||
|
* Create application first
|
||||||
|
* Enforce application name even if the executable is renamed
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<IsA>app:gui</IsA>
|
<IsA>app:gui</IsA>
|
||||||
<Summary>Advanced Text Editor</Summary>
|
<Summary>Advanced Text Editor</Summary>
|
||||||
<Description>Plasma library and runtime components based upon KF5 and Qt5</Description>
|
<Description>Plasma library and runtime components based upon KF5 and Qt5</Description>
|
||||||
<Archive sha1sum="e4a79ab7aeec2b83404cea74c6f1d7f8d4807935" type="tarxz">mirrors://kde/stable/applications/17.04.2/src/kate-17.04.2.tar.xz</Archive>
|
<Archive sha1sum="2ee235828a3f5f1b4c7fa27f02d9db997ce8b74b" type="targz">https://codeload.github.com/KDE/kate/tar.gz/v17.04.3</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency versionFrom="5.7.1">qt5-base-devel</Dependency>
|
<Dependency versionFrom="5.7.1">qt5-base-devel</Dependency>
|
||||||
<Dependency>plasma-framework-devel</Dependency>
|
<Dependency>plasma-framework-devel</Dependency>
|
||||||
@@ -33,6 +33,10 @@
|
|||||||
<Dependency>extra-cmake-modules</Dependency>
|
<Dependency>extra-cmake-modules</Dependency>
|
||||||
<Dependency>kded-devel</Dependency>
|
<Dependency>kded-devel</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch level="1">kate-17.04.0-allow-root.patch</Patch>
|
||||||
|
<Patch level="1">kwrite-17.04.0-allow-root.patch</Patch>
|
||||||
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
<Package>
|
<Package>
|
||||||
@@ -81,6 +85,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="10">
|
||||||
|
<Date>2017-07-17</Date>
|
||||||
|
<Version>17.04.3</Version>
|
||||||
|
<Comment>Version bump</Comment>
|
||||||
|
<Name>Ali Algul</Name>
|
||||||
|
<Email>aligulle3801@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="9">
|
<Update release="9">
|
||||||
<Date>2017-06-29</Date>
|
<Date>2017-06-29</Date>
|
||||||
<Version>17.04.2</Version>
|
<Version>17.04.2</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user