Page 1 of 1

"install" option on right click under thunar

Posted: 7. Sep 2010, 18:40
by zAchAry
JRD wrote:you should have an "install" option on right click under thunar.
from: http://www.salixos.org/forum/viewtopic.php?p=3508#p3508

Can somebody post a Custom Action command that will open a terminal as root and install the desired .txz file?
I'd like it to open the terminal like this:

Code: Select all

etf[<current-folder>]$ installpkg package.txz
and I'll hit Enter at my will.

Anyone?

edit: JRD, may you please give us your Custom Action command? (if you didn't imagined it, lol)

Re: "install" option on right click under thunar

Posted: 8. Sep 2010, 12:13
by JRD
The XML part of my ~/.config/Thunar/uca.xml file:

Code: Select all

<action>
  <icon>package</icon>
  <name>Installer</name>
  <command>gksu upgradepkg --install-new %F</command>
  <description>Installer un paquet</description>
  <patterns>*-*-*-*.txz;*-*-*-*.tgz</patterns>
  <other-files/>
</action>

Re: "install" option on right click under thunar

Posted: 16. Sep 2010, 19:37
by zAchAry
First off: Thank you for sharing!

Try

Code: Select all

gksu xterm -hold -e installpkg %F
+ using the "package-install" icon (since a package with the same name is not installed, yet).

I gathered the "-hold" parameter of xterm from forums.debian.net.

Please, suggestions for improvements are, obviously, welcome!