summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorormorph <roma251078@mail.ru>2023-05-26 20:31:00 +0300
committerSlávek Banko <slavek.banko@axis.cz>2023-05-31 15:48:25 +0200
commit064abb27fdfae5bbc5404df4fd7dba6908389b14 (patch)
tree1dbe392842d503b46a5eac429e0852c26d5f7e6d
parentc3f770348ffd9205414efc325e8e32a19a4021ac (diff)
downloadtde-packaging-gentoo-064abb27fdfae5bbc5404df4fd7dba6908389b14.tar.gz
tde-packaging-gentoo-064abb27fdfae5bbc5404df4fd7dba6908389b14.zip
Changed externalpreview.sh script in quanta builds
Signed-off-by: ormorph <roma251078@mail.ru> (cherry picked from commit 31c34f8917436921a3a181c5c056a4fb2b9c1412)
-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