summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2023-05-26 20:31:00 +0300
committerormorph <roma251078@mail.ru>2023-05-26 20:31:00 +0300
commit31c34f8917436921a3a181c5c056a4fb2b9c1412 (patch)
tree1dbe392842d503b46a5eac429e0852c26d5f7e6d
parentf91259178da22ec8a9d9512fdde8b0c67b38cb4b (diff)
downloadtde-packaging-gentoo-31c34f8917436921a3a181c5c056a4fb2b9c1412.tar.gz
tde-packaging-gentoo-31c34f8917436921a3a181c5c056a4fb2b9c1412.zip
Changed externalpreview.sh script in quanta builds
Signed-off-by: ormorph <roma251078@mail.ru>
-rw-r--r--trinity-base/quanta/files/externalpreview.sh18
-rw-r--r--trinity-base/quanta/quanta-14.0.13.ebuild5
-rw-r--r--trinity-base/quanta/quanta-14.1.0.ebuild5
-rw-r--r--trinity-base/quanta/quanta-9999.ebuild5
4 files changed, 33 insertions, 0 deletions
diff --git a/trinity-base/quanta/files/externalpreview.sh b/trinity-base/quanta/files/externalpreview.sh
new file mode 100644
index 00000000..f01593ed
--- /dev/null
+++ b/trinity-base/quanta/files/externalpreview.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+#Previews the current document in Mozilla/Netscape/Opera, depending
+#on the last two arguments (browsername, newtab command).
+#Might be adjusted in the feature to support more browsers.
+pid=$1
+currentURL=""
+if test $pid == "unique"
+then
+ currentURL=`dcop quanta WindowManagerIf saveCurrentFile`
+ shift
+else
+ currentURL=`dcop quanta-$pid WindowManagerIf saveCurrentFile`
+fi
+browser=$2
+newTab=$3
+if test $currentURL ; then
+ $browser $currentURL
+fi
diff --git a/trinity-base/quanta/quanta-14.0.13.ebuild b/trinity-base/quanta/quanta-14.0.13.ebuild
index 5e888940..3d80b232 100644
--- a/trinity-base/quanta/quanta-14.0.13.ebuild
+++ b/trinity-base/quanta/quanta-14.0.13.ebuild
@@ -50,6 +50,11 @@ src_configure() {
trinity-meta-2_src_configure
}
+src_prepare() {
+ cp "${FILESDIR}/externalpreview.sh" "${S}/quanta/scripts/externalpreview.sh" || die
+ trinity-meta-2_src_prepare
+}
+
src_install() {
dodir ${TDEDIR}/share/apps/quanta/doc
diff --git a/trinity-base/quanta/quanta-14.1.0.ebuild b/trinity-base/quanta/quanta-14.1.0.ebuild
index 7ca13771..ee7b51d9 100644
--- a/trinity-base/quanta/quanta-14.1.0.ebuild
+++ b/trinity-base/quanta/quanta-14.1.0.ebuild
@@ -50,6 +50,11 @@ src_configure() {
trinity-meta-2_src_configure
}
+src_prepare() {
+ cp "${FILESDIR}/externalpreview.sh" "${S}/quanta/scripts/externalpreview.sh" || die
+ trinity-meta-2_src_prepare
+}
+
src_install() {
dodir ${TDEDIR}/share/apps/quanta/doc
diff --git a/trinity-base/quanta/quanta-9999.ebuild b/trinity-base/quanta/quanta-9999.ebuild
index 4798ecb0..2655c88c 100644
--- a/trinity-base/quanta/quanta-9999.ebuild
+++ b/trinity-base/quanta/quanta-9999.ebuild
@@ -45,6 +45,11 @@ src_unpack() {
unpack html.tar.bz2
}
+src_prepare() {
+ cp "${FILESDIR}/externalpreview.sh" "${S}/quanta/scripts/externalpreview.sh" || die
+ trinity-meta-2_src_prepare
+}
+
src_configure() {
append-cxxflags "-std=c++11"
trinity-meta-2_src_configure