Commits

Moises Henriquez committed cb578a6

exaile fix path in dbus service file

Comments (0)

Files changed (1)

var/vabs/exaile/src/exaile.SlackBuild

 # correct path and that it will work seamlessly within the KDE environment.
 #
 #-----------------------------------------------------------------------
-sed -e '/^#!\//,1 d' -i plugins/*.py plugins/*/*.py xl/*.py exaile.py || exit 1
+#sed -e '/^#!\//,1 d' -i plugins/*.py plugins/*/*.py xl/*.py exaile.py || exit 1
 
 make PREFIX=/usr || exit 1
-make install \
-  PREFIX=/usr LIBINSTALLDIR=/lib${LIBDIRSUFFIX} \
-  DESTDIR=${PKG} || exit 1
+make PREFIX=/usr DESTDIR=$PKG LIBINSTALLDIR=/lib${LIBDIRSUFFIX} install || exit 1
 
 chmod 0755 ${PKG}/usr/bin/exaile
 
-chmod 0755 ${PKG}/usr/lib${LIBDIRSUFFIX}/${NAME}/mmkeys.so
+#chmod 0755 ${PKG}/usr/lib${LIBDIRSUFFIX}/${NAME}/mmkeys.so
 
 find ${PKG} | xargs file | grep -e "executable" -e "shared object" | grep ELF \
   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
 
 #######################################################################
 #Miscellenious tweaks and things outside a normal ./configure go here #
+# Fix path in dbus service file and .desktop file
+
+	# fix for clicking files with spaces in names from nautilus
+sed -i "s#%u#%f#" "$PKG/usr/share/applications/exaile.desktop"
+sed -i "s|Exec=$PKG/*|Exec=/|" "$PKG/usr/share/dbus-1/services/org.exaile.Exaile.service"
+
 #######################################################################