Thunar-action - creare pacchetti compatibili Slack e Zenwalk

Image Hosted by ImageShack.us
Questo piccolo thun-action consente di realizzare, con un semplice click, un pacchetto .tgz (da una directory) compatibile Zenwalk/Slackware utilizzando il tool makepkg.

Vediamo come configurare il nostro file manager in pochi passi:
1-
Apriamo Thunar e spostiamoci in Thunar > Edit > Configure custom actions
2-
Nel basic-tab completiamo i campi come riportato di seguito:
Name: Crea pacchetto
Description: Crea un pacchetto .tgz da una directory
Command (tutto sulla stessa riga):

Xdialog --title 'Make a package for %f' "`cd %f && gksu makepkg %f.tgz > %f.log`" --logbox %f.log 800x600 0 0 10000

Icon: a scelta

NB: Questa azione genera un file di log riassuntivo del pacchetto appena creato.
Per disattivare la funzione (pop-up windows) è sufficiente eliminare la stringa

%f.log 800x600

c
3- Nel tab Appearance Conditions:

File Pattern

 4- Nel tab Appears if selection contains spuntiamo la voce:

Directories

Riavviamo Thunar, e la nostra custom-action è pronta per sfornare pacchetti .tgz.

Ringraziamento speciale ad Atticus, del forum di Zenwalk.

NB: Indicato specialmente per pacchettizzare i nostri script preferiti. ;)

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.