Skip to content

Commit e5e346b

Browse files
committed
Include icon in project rather than fragile extraction logic
1 parent 951a30d commit e5e346b

File tree

4 files changed

+11
-30
lines changed

4 files changed

+11
-30
lines changed

install.sh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@
33
# Exit immediately if something fails
44
set -e
55

6-
mkdir -p /tmp/firefoxprofile_installer
7-
sudo mkdir -p /usr/share/pixmaps/
8-
9-
10-
if [[ -e /usr/lib/firefox/browser/omni.ja ]]; then
11-
unzip -o /usr/lib/firefox/browser/omni.ja "chrome/browser/skin/classic/browser/privatebrowsing/favicon.svg" -d /tmp/firefoxprofile_installer
12-
elif [[ -e /usr/lib/firefox-esr/browser/omni.ja ]]; then
13-
unzip -o /usr/lib/firefox-esr/browser/omni.ja "chrome/browser/skin/classic/browser/privatebrowsing/favicon.svg" -d /tmp/firefoxprofile_installer
14-
else
15-
echo "Warning: Neither /usr/lib/firefox/browser/omni.ja nor /usr/lib/firefox-esr/browser/omni.ja exists. Continuing installation without extracting favicon.svg."
16-
fi
17-
18-
if [[ -e /tmp/firefoxprofile_installer/chrome/browser/skin/classic/browser/privatebrowsing/favicon.svg ]]; then
19-
sudo mv /tmp/firefoxprofile_installer/chrome/browser/skin/classic/browser/privatebrowsing/favicon.svg /usr/share/pixmaps/private_browsing_firefox.svg
20-
rm -rf /tmp/firefoxprofile_installer
21-
fi
22-
236
# Clone project if it is downloaded using curl
247
if [[ $(basename "$PWD") != "krunner-firefox"* ]]; then
258
git clone https://github.com/alex1701c/krunner-firefox

preinst

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ target_link_libraries(kcm_firefoxprofilerunner
4040
KF${QT_MAJOR_VERSION}::Runner
4141
core_STATIC
4242
)
43+
44+
install(FILES private_browsing_firefox.svg DESTINATION ${KDE_INSTALL_DATADIR}/pixmaps/)

src/private_browsing_firefox.svg

Lines changed: 9 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)