Hi,
I have added a few custom actions in Thunar(xfce), what command should I use to show the actions output in a display window. Currently I have " gksu installpkg %f ", but can't tell whether all installed correctly.
Thanks in advance.
Thunar custom actions feedback window
Re: Thunar custom actions feedback window
You'll have to create a script that checks if the installpkg command was successful or not and inform you using something like xdialog or zenity and run that script from the custom command. Something like:
haven't tested that at all, but it should work
Code: Select all
installpkg $1
if [ $? -eq 0 ]; then
zenity --info --text="Package installed"
else
zenity --error --text="Error installing package"
fi
Re: Thunar custom actions feedback window
Thank you Gapan.
In Thunar custom actions I added "gksu /home/mexxx/.config/Thunar/scripts/instpkginfo.sh %f", calling the script you suggested:
"#!/bin/bash
installpkg $1
if [ $? -eq 0 ]; then
zenity --info --text="Package installed"
else
zenity --error --text="Error installing package"
fi"
Up pops the "package installed" confirmation! yay.
I previously used Vectorlinux, which had their own Thunar custom actions built in, giving a little feedback on where the files had been installed to etc. (which would be nice to have). Unfortunately, now being a Salix convert, I removed my previous installs of VL so can't crib their actions. This gives a good indication that all went well.
Thx again.
In Thunar custom actions I added "gksu /home/mexxx/.config/Thunar/scripts/instpkginfo.sh %f", calling the script you suggested:
"#!/bin/bash
installpkg $1
if [ $? -eq 0 ]; then
zenity --info --text="Package installed"
else
zenity --error --text="Error installing package"
fi"
Up pops the "package installed" confirmation! yay.
I previously used Vectorlinux, which had their own Thunar custom actions built in, giving a little feedback on where the files had been installed to etc. (which would be nice to have). Unfortunately, now being a Salix convert, I removed my previous installs of VL so can't crib their actions. This gives a good indication that all went well.
Thx again.
Re: Thunar custom actions feedback window
@pevsner you can also make use of xterm http://www.salixos.org/forum/viewtopic. ... [code]gksu xterm -hold -e installpkg %F[/code]
Code: Select all
gksu xterm -hold -e upgradepkg --install-new %F
Re: Thunar custom actions feedback window
@ zAchAry,
Thanks for that, it works well.
I switched to lxde but still use thunar, in preference to pcmanfm, because it has the custom actions, mouse-gestures and wheel-scroll icon sizing.
Thanks for that, it works well.
I switched to lxde but still use thunar, in preference to pcmanfm, because it has the custom actions, mouse-gestures and wheel-scroll icon sizing.