diff --git a/INSTALL b/INSTALL --- a/INSTALL +++ b/INSTALL @@ -37,8 +37,8 @@ - libqt5core5 Qt 5 core module - libqt5gui5 Qt 5 GUI module - libqt5printsupport5 Qt 5 print support module -- libstdc++6 The GNU Standard C++ Library v3 -- zlib1g compression library - runtime +- libstdc++6 The GNU Standard C++ Library v3 +- zlib1g compression library - runtime --- Suggested packages @@ -55,6 +55,11 @@ - kate Powerful Text Editor +- kde-cli-tools allows editing file types from Properties dialog + +- kdesu graphical sudo tool, required to run Krusader in root +or kdesudo mode + - kio-extras Enables transparent handling of various archive types such as .tar and network protocols like SFTP @@ -109,14 +114,14 @@ --- Krusader development download -Krusader is developed in KDE Extragear. If someone wants to download and use +Krusader is developed in KDE Extragear. If someone wants to download and use the latest available Krusader sourcecode with git: $ git clone http://anongit.kde.org/krusader Otherwise, if someone wants to use a .tar.gz version: $ tar xvf krusader-xx.xx.tar.gz - - + + --- Some CMake options. Cmake execution -DCMAKE_INSTALL_PREFIX=/usr @@ -160,21 +165,21 @@ --- To achieve that Krusader uses another language There is a list of translation files in the [10n.kde.org Krusader page](https://l10n.kde.org/stats/gui/trunk-kf5/po/krusader.po/index.html). -In that list anyone can look for his desired translation file, hover the mouse cursor over its link, see its tooltip to look up the -appropriate LANGUAGE_CODE (which is shown between parentheses, e.g. if on the tooltip it's seen "German (de)" that means that +In that list anyone can look for his desired translation file, hover the mouse cursor over its link, see its tooltip to look up the +appropriate LANGUAGE_CODE (which is shown between parentheses, e.g. if on the tooltip it's seen "German (de)" that means that LANGUAGE_CODE is: de), click on the link (in order to download the proper krusader.po file), and execute: # Transform the downloaded file msgfmt krusader.po -o krusader.mo # At the beginning of the following command: `sudo` must be added if Kubuntu, Ubuntu, Debian, or similar is being used. - # In the following command, the text XXXXXXX must be replaced by the LANGUAGE_CODE that was previously found + # In the following command, the text XXXXXXX must be replaced by the LANGUAGE_CODE that was previously found su -c "cp -a krusader.mo /usr/share/locale/XXXXXXX/LC_MESSAGES/" Note: If, in the future, someone would need to automate the downloading of a krusader.po file, he could use: # In the following command, the text XXXXXXX must be replaced by the LANGUAGE_CODE that was previously found $ wget -U "Mozilla/5.0" https://websvn.kde.org/*checkout*/trunk/l10n-kf5/XXXXXXX/messages/extragear-utils/krusader.po - + --- Execution @@ -187,7 +192,7 @@ # At the beginning of the following command: `sudo` must be added if Kubuntu, Ubuntu, Debian, or similar is being used $ su -c "make uninstall" - + --- Appendix 1 If it can be useful, this is the output of cmake on Kubuntu 15.04: diff --git a/krusader/Konfigurator/krresulttable.cpp b/krusader/Konfigurator/krresulttable.cpp --- a/krusader/Konfigurator/krresulttable.cpp +++ b/krusader/Konfigurator/krresulttable.cpp @@ -270,13 +270,14 @@ { _supported = KrServices::supportedTools(); // get list of available tools - QList vecDiff, vecMail, vecRename, vecChecksum; + QList vecDiff, vecMail, vecRename, vecSudo, vecChecksum; Application* kdiff3 = new Application("kdiff3", "http://kdiff3.sourceforge.net/", KrServices::cmdExist("kdiff3")); Application* kompare = new Application("kompare", "http://www.caffeinated.me.uk/kompare/", KrServices::cmdExist("kompare")); Application* xxdiff = new Application("xxdiff", "http://xxdiff.sourceforge.net/", KrServices::cmdExist("xxdiff")); Application* thunderbird = new Application("thunderbird", "http://www.mozilla.org/", KrServices::cmdExist("thunderbird")); Application* kmail = new Application("kmail", "http://kmail.kde.org/", KrServices::cmdExist("kmail")); Application* krename = new Application("krename", "http://www.krename.net/", KrServices::cmdExist("krename")); + Application* kdesu = new Application("kdesu", "https://docs.kde.org/stable5/en/kde-workspace/kdesu/", KrServices::cmdExist("kdesu")); Application* md5sum = new Application("md5sum", "http://www.gnu.org/software/textutils/textutils.html", KrServices::cmdExist("md5sum")); Application* md5deep = new Application("md5deep", "http://md5deep.sourceforge.net/", KrServices::cmdExist("md5deep")); Application* sha1deep = new Application("sha1deep", "http://md5deep.sourceforge.net/", KrServices::cmdExist("sha1deep")); @@ -291,6 +292,7 @@ vecMail.push_back(thunderbird); vecMail.push_back(kmail); vecRename.push_back(krename); + vecSudo.push_back(kdesu); vecChecksum.push_back(md5sum); vecChecksum.push_back(md5deep); vecChecksum.push_back(sha1deep); @@ -302,6 +304,7 @@ ApplicationGroup* diff = new ApplicationGroup(i18n("diff utility"), PS("DIFF"), vecDiff); ApplicationGroup* mail = new ApplicationGroup(i18n("email client"), PS("MAIL"), vecMail); ApplicationGroup* rename = new ApplicationGroup(i18n("batch renamer"), PS("RENAME"), vecRename); + ApplicationGroup* sudo = new ApplicationGroup(i18n("graphical sudo"), PS("KDESU"), vecSudo); ApplicationGroup* checksum = new ApplicationGroup(i18n("checksum utility"), PS("MD5"), vecChecksum); _tableHeaders.append(i18n("Group")); @@ -315,14 +318,16 @@ addRow(diff, _grid); addRow(mail, _grid); addRow(rename, _grid); + addRow(sudo, _grid); addRow(checksum, _grid); delete thunderbird; delete kmail; delete kompare; delete kdiff3; delete xxdiff; delete krename; + delete kdesu; delete md5sum; delete md5deep; delete sha1deep; @@ -334,6 +339,7 @@ delete diff; delete mail; delete rename; + delete sudo; delete checksum; } diff --git a/krusader/krservices.cpp b/krusader/krservices.cpp --- a/krusader/krservices.cpp +++ b/krusader/krservices.cpp @@ -235,6 +235,11 @@ QStringList() << "krename", "krename"); + // graphical sudo: kdesu or kdesudo + supportedTool(tools, "KDESU", + QStringList() << "kdesu" << "kdesudo", + "kdesu"); + // checksum utility supportedTool(tools, "MD5", QStringList() << "md5deep" << "md5sum" << "sha1deep" << "sha256deep"