Skip to content

Commit

Permalink
Include icon in project rather than fragile extraction logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Nov 2, 2024
1 parent 951a30d commit e5e346b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 30 deletions.
17 changes: 0 additions & 17 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@
# Exit immediately if something fails
set -e

mkdir -p /tmp/firefoxprofile_installer
sudo mkdir -p /usr/share/pixmaps/


if [[ -e /usr/lib/firefox/browser/omni.ja ]]; then
unzip -o /usr/lib/firefox/browser/omni.ja "chrome/browser/skin/classic/browser/privatebrowsing/favicon.svg" -d /tmp/firefoxprofile_installer
elif [[ -e /usr/lib/firefox-esr/browser/omni.ja ]]; then
unzip -o /usr/lib/firefox-esr/browser/omni.ja "chrome/browser/skin/classic/browser/privatebrowsing/favicon.svg" -d /tmp/firefoxprofile_installer
else
echo "Warning: Neither /usr/lib/firefox/browser/omni.ja nor /usr/lib/firefox-esr/browser/omni.ja exists. Continuing installation without extracting favicon.svg."
fi

if [[ -e /tmp/firefoxprofile_installer/chrome/browser/skin/classic/browser/privatebrowsing/favicon.svg ]]; then
sudo mv /tmp/firefoxprofile_installer/chrome/browser/skin/classic/browser/privatebrowsing/favicon.svg /usr/share/pixmaps/private_browsing_firefox.svg
rm -rf /tmp/firefoxprofile_installer
fi

# Clone project if it is downloaded using curl
if [[ $(basename "$PWD") != "krunner-firefox"* ]]; then
git clone https://github.com/alex1701c/krunner-firefox
Expand Down
13 changes: 0 additions & 13 deletions preinst

This file was deleted.

2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ target_link_libraries(kcm_firefoxprofilerunner
KF${QT_MAJOR_VERSION}::Runner
core_STATIC
)

install(FILES private_browsing_firefox.svg DESTINATION ${KDE_INSTALL_DATADIR}/pixmaps/)
9 changes: 9 additions & 0 deletions src/private_browsing_firefox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e5e346b

Please sign in to comment.