diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-02-20 11:46:59 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-04-02 16:49:11 +0900 |
commit | f887a3ee8f51b158ffb32d88e1489a6f2e0a9dbb (patch) | |
tree | 3e047d1a1fc6d4e3b55af254251f52723fb46455 /src/tdeconf_update | |
parent | ab992aba703fea5fba22a7f7fc3044d9306277ca (diff) | |
download | kvirc-f887a3ee8f51b158ffb32d88e1489a6f2e0a9dbb.tar.gz kvirc-f887a3ee8f51b158ffb32d88e1489a6f2e0a9dbb.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tdeconf_update')
-rw-r--r-- | src/tdeconf_update/Makefile.am | 7 | ||||
-rw-r--r-- | src/tdeconf_update/kvirc_soundsystem.upd | 2 | ||||
-rwxr-xr-x | src/tdeconf_update/kvirc_soundsystem_upd.sh | 8 |
3 files changed, 17 insertions, 0 deletions
diff --git a/src/tdeconf_update/Makefile.am b/src/tdeconf_update/Makefile.am new file mode 100644 index 00000000..349fb72d --- /dev/null +++ b/src/tdeconf_update/Makefile.am @@ -0,0 +1,7 @@ +update_DATA = \ + kvirc_soundsystem.upd + +update_SCRIPTS = \ + kvirc_soundsystem_upd.sh + +updatedir = $(datadir)/apps/tdeconf_update diff --git a/src/tdeconf_update/kvirc_soundsystem.upd b/src/tdeconf_update/kvirc_soundsystem.upd new file mode 100644 index 00000000..6a7a3bf3 --- /dev/null +++ b/src/tdeconf_update/kvirc_soundsystem.upd @@ -0,0 +1,2 @@ +Id=kvirc_soundsystem_qt_tqt_update +Script=kvirc_soundsystem_upd.sh,sh diff --git a/src/tdeconf_update/kvirc_soundsystem_upd.sh b/src/tdeconf_update/kvirc_soundsystem_upd.sh new file mode 100755 index 00000000..0fe7a9f2 --- /dev/null +++ b/src/tdeconf_update/kvirc_soundsystem_upd.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# Updates kvirc sound system configuration +KVIRC_CFG_DIR=`sed -n "s/^LocalKvircDirectory=//p" "${HOME}/.trinity/share/config/kvircrc"` +if [ -n "${KVIRC_CFG_DIR}" ]; then + perl -p -i -e "s/^stringSoundSystem=qt$/stringSoundSystem=tqt/" "${KVIRC_CFG_DIR}/config/main.kvc" +fi +unset KVIRC_CFG_DIR |