Adjustment to the way alternatives are set up that should cure blurry/incorrect icons in task switchers

This commit is contained in:
Stephen Boddy 2015-08-23 20:29:10 +02:00
parent c9caecf009
commit 809bc06c0e
4 changed files with 11 additions and 1 deletions

View File

@ -1,9 +1,12 @@
#!/bin/sh -e
if [ "$1" = "configure" ]; then
# Ensure the old alternative is removed
update-alternatives --remove terminator /usr/bin/terminator || true
update-alternatives --remove x-terminal-emulator /usr/bin/terminator
# Add an alternative for x-terminal-emulator
update-alternatives --install /usr/bin/x-terminal-emulator \
x-terminal-emulator /usr/bin/terminator 50 \
x-terminal-emulator /usr/bin/terminator.wrapper 50 \
--slave /usr/share/man/man1/x-terminal-emulator.1.gz \
x-terminal-emulator.1.gz /usr/share/man/man1/terminator.1.gz
fi

View File

@ -3,6 +3,8 @@
if [ "$1" = remove ]; then
update-alternatives --remove terminator /usr/bin/terminator || true
update-alternatives --remove x-terminal-emulator /usr/bin/terminator
update-alternatives --remove terminator.wrapper /usr/bin/terminator.wrapper || true
update-alternatives --remove x-terminal-emulator /usr/bin/terminator.wrapper
fi
#DEBHELPER#

View File

@ -219,6 +219,7 @@ setup(name=APP_NAME.capitalize(),
license='GNU GPL v2',
scripts=['terminator', 'remotinator'],
data_files=[
('bin', ['terminator.wrapper']),
('share/appdata', ['data/terminator.appdata.xml']),
('share/applications', ['data/terminator.desktop']),
(os.path.join(man_dir, 'man1'), ['doc/terminator.1']),

4
terminator.wrapper Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
terminator $@