Page 1 of 1

Downloaded Furnace Tracker starts but can't open or save files (Solved)

Posted: Wed Aug 02, 2023 9:24 pm
by vormgear

I download and was able to run furnace tracker version 0.6
But i cant save or open files. When i try i get a dialogue window with the option buttons for OK or cancel but no way to select a folder location. I've run this version of furnace tracker on a arch and and Debian based system before without a problem.

Im running easyOS kirkstone 5.4.9 off a USB drive.


Re: Downloaded application starts but cant open or save files

Posted: Wed Aug 02, 2023 10:02 pm
by kamemo

I've never used this app, but I downloaded furnace-0.6pre7-linux.tar.gz from https://github.com/tildearrow/furnace/releases.
I hope, this is the right app.
After extracting, the app started normally. Then I tried to open or save a file and got the same error as you.

Screenshot.png
Screenshot.png (22.17 KiB) Viewed 1166 times

That is the first time, I see this bug. With other apps I got no problems so far. I am also using EasyOS 5.4.9.
This is a pre-release version in beta state. Perhaps it is a bug in the app.


Re: Downloaded application starts but cant open or save files

Posted: Thu Aug 03, 2023 2:19 am
by vormgear

I don't think its just furnace I got the same problem with vcv rack. I also tried some other programs to see if i could duplicate the weird save dialogue. Krita, Audacity and My paint all seemed to work correctly by displaying the correct file dialogue for saving files.


Re: Downloaded application starts but cant open or save files

Posted: Thu Aug 03, 2023 3:07 am
by MochiMoppel

What you see is a yad dialog, but that's not what Furnace expects:

https://github.com/tildearrow/furnace/issues/570 wrote:

Zenity/KDialog must be installed on Linux for the system file picker to work.

I can confirm that both Furnace-0.6pre1.AppImage and furnace-0.6pre7-linux.tar.gz run fine in Bookworm64, but the file picker does not work. Puppies, and I guess that EasyOS is no exception, have yad installed, often with zenity symlinked to yad. I've never seen an original zenity. AFAIK yad is a fork of zenity and *should* be compatible. Obviously it is not.

If you are really keen to go to the bottom, here is how zenity/yad is called from Furnace:

Code: Select all

zenity --file-selection --filename=/root/ --title Open File --separator= --file-filter compatible files|*.fur *.dmf *.mod *.fc13 *.fc14 *.smod *.fc --file-filter all files|* --confirm-overwrite

Yad doesn't understand --file-selection. For yad it should be --file. Some of the following options are also not understood by yad. Your best bet is to obtain an original zenity. Maybe copying it from the "Debian based system" would work?


Re: Downloaded application starts but cant open or save files

Posted: Thu Aug 03, 2023 3:29 pm
by vormgear

Thank you for the help. To get zeneity set up would i just need to grab the Debian package and install it on easyos or would the solution require something more involved?


Re: Downloaded application starts but cant open or save files

Posted: Thu Aug 03, 2023 4:41 pm
by rockedge

I think you can grab the dependencies and it should work.

Noticed your user name :thumbup:

I made some electronic music using the name WormGear

wg-album_cover.jpg
wg-album_cover.jpg (12.71 KiB) Viewed 1077 times

Re: Downloaded application starts but cant open or save files

Posted: Thu Aug 03, 2023 5:06 pm
by mikewalsh

@vormgear :-

Try this. It's the Zenity .deb package for Debian 11. I've had to add a 'fake' .gz to the end for the forum to allow upload, so just remove it before use.....that will return it to a standard .deb package. Attached below.

(It's now a shared library, rather than a binary like the older ones, but that shouldn't prevent it from functioning. You may need to run 'ldd' on the 'zenity' library to see if there's any missing dependencies.)

Code: Select all

/usr/bin/zenity --ldd

Mike. ;)


Re: Downloaded application starts but cant open or save files

Posted: Fri Aug 04, 2023 2:36 am
by BarryK

The yad project has a zenity-compatibility script:

https://github.com/v1cont/yad/blob/mast ... /zenity.sh

Maybe we could improve that a bit, have /usr/bin/zenity as a script rather than a symlink to yad.


Re: Downloaded application starts but cant open or save files

Posted: Fri Aug 04, 2023 5:08 am
by MochiMoppel
BarryK wrote: Fri Aug 04, 2023 2:36 am

Maybe we could improve that a bit, have /usr/bin/zenity as a script rather than a symlink to yad.

This function just adds icons to the dialog but what we need is change the syntax. I tried to modify the function but it didn't work. Some arguments have spaces in them and proper quoting gets lost during the process. But using zenity as a wrapper script rather than a symlink is definitely the way to go...

@vormgear I think I have found a very easy solution. Please replace the symlink /usr/bin/zenity with following script /usr/bin/zenity:

Code: Select all

#!/bin/bash
exec yad "${@/--file-selection/--file}"

Fixes the file picker but otherwise works just like the symlink.

zenity.png
zenity.png (71.6 KiB) Viewed 1016 times

Re: Downloaded application starts but cant open or save files

Posted: Fri Aug 04, 2023 2:44 pm
by vormgear

Success the script replacement worked. :D

Thank you.


Re: Downloaded Furnace Tracker starts but can't open or save files (Solved)

Posted: Mon Aug 07, 2023 2:11 am
by BarryK

@MochiMoppel
Thanks for that script, I have put it into EasyOS, instead of the symlink.