Skip to content

Instantly share code, notes, and snippets.

@Yash089610
Last active April 7, 2019 15:03
Show Gist options
  • Select an option

  • Save Yash089610/04a3a1134812033a4ff830fc51804978 to your computer and use it in GitHub Desktop.

Select an option

Save Yash089610/04a3a1134812033a4ff830fc51804978 to your computer and use it in GitHub Desktop.
Use to Enable dolphin to run as root... Remember to restart PC
#!/usr/bin/env bash
sudo pacman -Sy --needed --noconfirm phonon-qt5 qt5-webkit qt5-script qt5-svg qt5-tools qt5-x11extras enchant jasper \
openexr libutempter docbook-xsl shared-mime-info giflib libxss upower udisks2 bzr git doxygen perl-json perl-libwww \
perl-xml-parser perl-io-socket-ssl akonadi xorg-server-devel libpwquality fontforge eigen libfakekey qca-qt5 xapian-core \
xsd gperf perl-yaml-syck intltool kdesdk git extra-cmake-modules dialog baloo-widgets-git kactivities-frameworks kio-extras \
knewstuff ktexteditor extra-cmake-modules git kdoctools python axel
echo ""
echo ""
echo ""
cd /tmp || exit 1
sudo rm -rf dolphin*
version=$(curl https://api.github.com/repos/KDE/dolphin/tags | grep tarball_url | cut -d / -f 8 | tr -d \" | tr -d ',' | sed 1q)
git clone git://github.com/KDE/dolphin.git -b "${version}" dolphin
cd /tmp/dolphin || exit 1
echo ""
echo ""
curl https://gist.githubusercontent.com/Yash089610/6c2bb462def6f213d7067d7c345a5f7b/raw/0487018c3f14b3d980da7aac3d66627a40a933f6/dolphin.patch | patch -p1
mkdir -p build
cd build
cmake ../ \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF || exit 1
sudo make || exit 1
sudo make install || exit 1
cd - || exit 1
sudo rm -rf /tmp/dolphin*
dolphin --version
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment