Hello Jogad, Fenerit, Marco Klunder, etc.
Thank you very much for
SLIDESHOW-DIAPORAMA. It's very useful for me.
I've added a few lines of code to adapt
SLIDESHOW-DIAPORAMA to GNU/Linux OS. It works now for me and I think it may be of your interest.
I wrote two Bash scripts, "
launchfile.sh" and "
launchHtml.sh", that must have the same functionality in GNU/Linux as "launchfile.bat" and "launchHtml.bat" in Windows.
"
launchfile.sh" opens plain text files, images, html, php, audios, videos, pdf, and oasis open documents. It plays mp3 with "mpg123" and "ogg" audio files with "ogg123" which must be installed in the computer. Both are command-line audio players, so no window is opened over our Celestia "landscape" when an audio file is played. Anyway, they may be changed by the user simply editing the file.
"
launchHtml.sh" main function is to open a web page when the link begins with the 7 characters "http://".
Jogad, you can find and check the code searching "running_OS" (line 1750) of "
slideshow.lua" in the attached "slideshow_2_Linux.zip". Those are the unique changes I made to "
slideshow.lua" lines from 1750 to 1756. I hope it could be useful for other GNU/Linux users. The strings testings "://" and ":[/\\]" are not present in the Linux running_OS section because I don't know if they are relevant in this OS. If you think the new codes are good enough you can add them to your official release, if you wish.
For
SLIDESHOW-DIAPORAMA to work correctly in GNU/Linux some changes must be made in "config_slideshow.lua":
Code: Select all
running_OS = "Linux"
play_file_command = '"PLAYFILE"' -- Same as Windows
slide_edit_command = [["kwrite" "TEXTFILE"]] -- running_OS = "Linux"
"KWrite" is my favorite text editor, but it can be easily changed.
A last note for GNU/Linux users:Unless mistake, I think SLIDESHOW-DIAPORAMA reads the catalog file "
_slideCatalog.txt" when it is started, but later changes are saved in the "
_slidecatalog.txt" (Do you find the difference?). They are two different files in GNU/Linux, so if you edit "
_slidecatalog.txt" before starting Celestia it is recommended to make a copy:
cp -p _slidecatalog.txt _slideCatalog.txt
before starting Celestia.
I have attached a translation file to Spanish, too:
"locale_slideshow_es.lua".
Thank you for your attention.