mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Add MTP::Sender to replace RPCSender some day.
Also use c++1z language standard in Xcode build. Also treat warnings as errors.
This commit is contained in:
@@ -62,7 +62,10 @@ QByteArray EscapeShell(const QByteArray &content) {
|
||||
|
||||
void UnsafeShowInFolder(const QString &filepath) {
|
||||
Ui::hideLayer(true);
|
||||
system(("xdg-open " + internal::EscapeShell(QFile::encodeName(QFileInfo(filepath).absoluteDir().absolutePath()))).constData());
|
||||
auto result = system(("xdg-open " + internal::EscapeShell(QFile::encodeName(QFileInfo(filepath).absoluteDir().absolutePath()))).constData());
|
||||
if (result) {
|
||||
LOG(("Failed to launch xdg-open"));
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace File
|
||||
|
@@ -422,7 +422,7 @@ void finish() {
|
||||
namespace {
|
||||
|
||||
bool _psRunCommand(const QByteArray &command) {
|
||||
int result = system(command.constData());
|
||||
auto result = system(command.constData());
|
||||
if (result) {
|
||||
DEBUG_LOG(("App Error: command failed, code: %1, command (in utf8): %2").arg(result).arg(command.constData()));
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user