Search
SailfishOS Open Build Service
>
Projects
>
home:wonko
:
pa4
:
addons
>
nemo-compatibility
> nemo-compatibility.sh
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nemo-compatibility.sh of Package nemo-compatibility
#!/bin/sh if [ "$1" = "install" ] ; then echo "Installing Nemo Comaptibility..." ARCH_ARRAY=($(grep "^arch = " /etc/zypp/zypp.conf)) if [ ${#ARCH_ARRAY[@]} -eq 3 ] then ARCH=${ARCH_ARRAY[2]} else if [ $(uname -m | grep "^i[0-9]86$") ] || [ $(uname -m | grep "^x86_64$") ] then # For iX86 and x86_64 we simply use i586. ARCH="i586" ; else ARCH=$(uname -m) ; fi fi echo "Using architecture: $ARCH" zypper -n ar -G http://repo.merproject.org/obs/nemo:/devel:/mw/latest_$ARCH/ nemo-mw-devel zypper -n ar -G http://repo.merproject.org/obs/nemo:/devel:/ux/latest_$ARCH/ nemo-ux-devel zypper -n ar -G http://repo.merproject.org/obs/nemo:/devel:/apps/latest_$ARCH/ nemo-apps-devel # For now we add the repositories from merproject.org as well as from meego.com. # This should be changed once it is clear which repositories are to be used. zypper -n ar -G http://repo.pub.meego.com/CE:/MW:/Shared/Mer_Core_$ARCH/ ce-mw-shared zypper -n ar -G http://repo.pub.meego.com/CE:/UX:/MTF/CE_MW_MTF_$ARCH/ ce-ux-mtf zypper -n ar -G http://repo.pub.meego.com/CE:/Apps/CE_MW_Shared_$ARCH/ ce-apps zypper -n in -f qt-components-nemo-compatibility meegotouch-theme-darko libmeegotouch libmeegotouch-l10n-en meegotouch-theme mapplauncherd # Some apps miss to specify these dependencies even thought they rely on them. # To avoid trouble for the user we simply install these right now. zypper -n in -f libdeclarative-location # At the moment the QML apps expect the theme to be located at /usr/share/themes/blanco # To make them happy we link the dark theme to there. ln -s /usr/share/themes/darko /usr/share/themes/blanco # We simply assume that we are on Plasma Active if the directory /home/mer exists. if [ -d /home/mer ] then $0 pa-fix-fullscreen fi elif [ "$1" = "uninstall" ] then echo "Removing Nemo Compatibility..." zypper -n rr nemo-mw-devel nemo-ux-devel nemo-apps-devel ce-mw-shared ce-ux-mtf ce-apps rm -f /usr/share/themes/blanco elif [ "$1" = "pa-fix-fullscreen" ] then # Temporary fix to force fullscreen apps to maximized instead of fullscreen. rm /home/mer/.kde/share/config/kwinrulesrc cp /usr/share/kde4/config/kwinactiverulesrc /home/mer/.kde/share/config/kwinrulesrc chown mer:mer /home/mer/.kde/share/config/kwinrulesrc rm /usr/share/kde4/apps/kwin/default_rules/fsp_workarounds_1.kwinrules echo -e "\nIn order to fully apply the changes you need to restart kwin." echo "You can do this, e.g., by killing Xorg like this (as root): killall Xorg" echo "Xorg will be restarted automatically. Alternatively, you can simply reboot." echo -e "\nIf you encounter apps being fullscreen again, e.g., after reboot please run: $0 pa-fix-fullscreen" else echo "Usage: $0 install|uninstall|pa-fix-fullscreen" fi