site  contact  subhomenews

File information app

December 22, 2024 — BarryK

Forum member JakeSFR, or just SFR in the old forum, has created a great app that will display information about any file or directory:

https://forum.puppylinux.com/viewtopic.php?t=12663

It can be a CLI app; however, he has also set it to run as a GUI and via the ROX-Filer right-click menu.

Really nice, love it. I have modified the 'i-1.2.pet', as the 'pinstall.sh' and 'punistall.sh' scripts are not needed. EasyOS automatically generates the Rox right-click menu entries when a package is installed and uninstalled, via script 'build-rox-sendto'.

So, right-click on any file or directory, and there will be an entry "File-information". However, I have enhanced 'build-rox-sendto' so that a translation will be applied. The /usr/share/applications/i.desktop has been enhanced:

[Desktop Entry]
Name[sq]=Dosja-informacion
Name[ar]=ﻒﻠﻤﻟﺍ ﺕﺎﻣﻮﻠﻌﻣ
Name[bg]=Файлова-информация
Name[zh]=文件信息
Name[cs]=Soubor-informace
Name[da]=Fil-information
Name[nl]=Bestandsinformatie
Name[fi]=Tiedoston-tiedot
Name[fr]=Informations-sur-le-fichier
Name[de]=Dateiinformationen
Name[el]=Αρχείο-πληροφορίες
Name[hu]=Fájl-információ
Name[is]=Skráarupplýsingar
Name[it]=Informazioni-sul-file
Name[ja]=ファイル情報
Name[mk]=Датотека-информации
Name[no]=Filinformasjon
Name[pl]=Informacje-o-pliku
Name[pt]=Informações-do-arquivo
Name[ro]=Fișier-informații
Name[ru]=Информация-о-файле
Name[sr]=Датотека-информације
Name[es]=Información-del-archivo
Name[sv]=Filinformation
Name[tr]=Dosya-bilgileri
Name[uk]=Файл-інформація
Name=File-information
Comment=Get a lot of info about a file
Exec=env I_GUI=true i
Icon=i.png
Type=Application
Categories=Utility;
NoDisplay=false

...so the right-click menu will display the appropriate translation.

Github commit for the enhanced 'build-rox-sendto':

https://github.com/bkauler/woofq/commit/a0277cd9b3dd042420b7588a455bf7ccb17a2177

Modified PET not yet uploaded. It will be builtin in the next release of Easy Scarthgap and Easy Daedalus.

Note, another entry in the right-click menu is "Run-in-terminal". The enhanced 'build-rox-sendto' will now also translate that. The file /usr/share/applications/run-in-terminal.desktop:

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Run-in-terminal
Name[bg]=Входен-терминал
Name[zh_CN]=运行终端
Name[zh_TW]=運作終端
Name[da]=Kør-i-terminal
Name[nl]=Run-in-terminal
Name[fi]=Run-in-terminaali
Name[fr]=Exécution-dans-le-terminal
Name[de]=Einlaufterminal
Name[el]=Run-in-terminal
Name[hu]=Run-in-terminál
Name[is]=Keyrt-í-flugstöð
Name[it]=Terminale-run-in
Name[ja]=ランインターミナル
Name[mk]=Работи-во-терминал
Name[no]=Kjør-i-terminal
Name[pl]=Terminal-uruchamiający
Name[pt]=Terminal-de-execução
Name[ro]=Run-in-terminal
Name[ru]=Запуск-в-терминале
Name[sr]=Рун-ин-терминал
Name[es]=Terminal-de-ejecución
Name[sv]=Run-in-terminal
Name[tr]=Çalıştırma terminali
Name[uk]=Термінал-обкатки
Exec=sakura -h -r 10 -c 80 -e run-in-terminal %F
Icon=mini-sh1.xpm
MimeType=application/x-shellscript;application/x-executable;application/x-perl;application/x-python;application/x-python3

...on the condition that the translation does not have a space character.

I posted about Run-in-terminal here:

https://bkhome.org/news/202411/rox-right-click-run-in-terminal.html

This is great, we keep making EasyOS more and more convenient to use.   

Tags: easy