"install" option on right click under thunar

Other talk about Salix
Post Reply
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

"install" option on right click under thunar

Post by zAchAry » 7. Sep 2010, 18:40

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)
Image
Help to make Slackware easier Donate to Salix

User avatar
JRD
Salix Warrior
Posts: 949
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: "install" option on right click under thunar

Post by JRD » 8. Sep 2010, 12:13

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>
Image

User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: "install" option on right click under thunar

Post by zAchAry » 16. Sep 2010, 19:37

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!
Image
Help to make Slackware easier Donate to Salix

Post Reply