summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-03 18:12:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-03 18:17:21 +0200
commitda5356b099c2504b3e9238f1afce410233847f9d (patch)
treecbf5bc0bf312a8be2060ef03028b34dd4bdc58bd /shell
parent6845c370a7371a142458fc18716687d6c97d397a (diff)
Revert "Workaround to call /app/bin/xdg-open when run under flatpak"
This reverts commit 28a03248b1d1649e157b788e43dfe8326f165379 (and removes a stry empty line). There is no more need for our own /app/bin/xdg-open, as xdg-open in the freedesktop.org (and thus also GNOME) runtime (see <https://github.com/flatpak/flatpak-xdg-utils/blob/master/src/xdg-open.c>) by now knows to ask the Desktop portal, too. Change-Id: Ie4141d02ba5f43c0264afcfae9edfc2d3a8cdb16
Diffstat (limited to 'shell')
-rw-r--r--shell/source/unix/exec/shellexec.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 1fd5230fcf93..bd8d51c0be3e 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -37,7 +37,6 @@
#include "uno/current_context.hxx"
-#include <cstdlib>
#include <string.h>
#include <errno.h>
#include <unistd.h>
@@ -146,11 +145,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
aBuffer.append("open --");
#else
// Just use xdg-open on non-Mac
- if (std::getenv("LIBO_FLATPAK") != nullptr) {
- aBuffer.append("/app/bin/xdg-open");
- } else {
- aBuffer.append("/usr/bin/xdg-open");
- }
+ aBuffer.append("/usr/bin/xdg-open");
#endif
aBuffer.append(" ");
escapeForShell(aBuffer, OUStringToOString(aURL, osl_getThreadTextEncoding()));
2016-10-03Fix typosAndrea Gelmini1-1/+1 2016-09-13loplugin:override: No more need for the "MSVC dtor override" workaroundStephan Bergmann10-24/+24 2016-08-30loplugin:stringconstant: adapt to improved OUStringLiteral1 (unoidl)Stephan Bergmann1-1/+1 2016-07-27loplugin:countusersofdefaultparams in tools..xmlsecurityNoel Grandin1-1/+1 2016-07-07loplugin:passstuffbyref also for {css::uno,rtl}::ReferenceStephan Bergmann1-1/+1 2016-05-12Massage code to avoid warningsStephan Bergmann2-8/+6 2016-05-10Replace fallthrough comments with new SAL_FALLTHROUGH macroStephan Bergmann1-1/+1 2016-04-26loplugin:nullptrStephan Bergmann1-106/+121 2016-03-17loplugin:constantparam in registryNoel Grandin1-1/+1 2016-02-06Fix prev. commitStephan Bergmann1-3/+5 2016-02-06Clean up for loops in unoidlStephan Bergmann7-823/+442 2016-02-04Add --ignore-unpublished to unoidl-checkStephan Bergmann1-17/+35 2015-12-14Use emplace_backStephan Bergmann3-184/+126 2015-11-10loplugin:nullptr (automatic rewrite; Mac-specific code)Stephan Bergmann1-2/+2 2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann8-37/+37 2015-11-06coverity#1338263 Uncaught exceptionCaolán McNamara1-0/+3 2015-11-06coverity#1338262 Uncaught exceptionCaolán McNamara1-0/+3 2015-11-06coverity#1338259 Uncaught exceptionCaolán McNamara1-0/+6 2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann9-23/+23 2015-08-21Use sal_uInt16, as required, and use < in for loop conditionMatteo Casalin1-4/+4 2015-06-02