¿ªÔÆÌåÓý

Locked Another way of adding roster media images without drag and drop? #rosterimage


 

Is there another way of adding roster media images other than drag and drop? (I can't seem to find one)
?
why?
?
I'm using a Raspberry Pi with Wayland. Drag and drop doesn't seem to work with Wayland, only X11. For various other reasons I'd like to continue using Wayland.
?
Or if anyone knows how to make it work with Wayland?
?
thanks
?
Julian Thornhill


 

Hello;
?
Not at the moment, but I'll add something. Nevertheless, I've been developing that on Linux using XOrg in the past, and now Wayland for a while (with Gnome on Ubuntu), and never had any issue.
?
Check the traces, maybe you try to drag'n drop some exotic files like webp not supported now, try regular jpg or png.
?
Regards;
Lionel


 

Hi Lionel,
I can duplicate the issue on my RPi5. I'm dragging a known-good .jpg file (same file works on Windows). Here is the session.log showing the error with DEBUG turned on.
--SteveT
?


 

Have you tried by starting from command prompt.
env -u WAYLAND_DISPLAY fullpathtopanelpro


On Thu, Oct 3, 2024, 09:43 Steve Todd via <mstevetodd=[email protected]> wrote:
Hi Lionel,
I can duplicate the issue on my RPi5. I'm dragging a known-good .jpg file (same file works on Windows). Here is the session.log showing the error with DEBUG turned on.
--SteveT
?


 

On Thu, Oct 3, 2024 at 07:26 AM, Steve_G wrote:
Have you tried by starting from command prompt.
env -u WAYLAND_DISPLAY fullpathtopanelpro
Tried that just now, no visible change, same IOException.
--SteveT


 

¿ªÔÆÌåÓý

Steve_G,

> env -u WAYLAND_DISPLAY fullpathtopanelpro

What does this command do?

Daniel

On 2024-10-03 16:25, Steve_G wrote:

Have you tried by starting from command prompt.
env -u WAYLAND_DISPLAY fullpathtopanelpro


On Thu, Oct 3, 2024, 09:43 Steve Todd via <mstevetodd=[email protected]> wrote:
Hi Lionel,
I can duplicate the issue on my RPi5. I'm dragging a known-good .jpg file (same file works on Windows). Here is the session.log showing the error with DEBUG turned on.
--SteveT
?


 

Daniel
It should unset the environment variable WAYLAND_DISPLAY and executes the command. This should, in most wayland Implementations, force the use of Xwayland.?
I am still unsure of which java versions and Implementations understand wayland.?
Steve G.
?


 

Hello;
?
Thank you for the stack trace, a little googling seems to indicate that this is a JVM issue.
?
As a workaround I'll add a way to popup a regular file chooser menu.
?
Regards;
Lionel


 

On Fri, Oct 4, 2024 at 02:28 AM, Lionel J. wrote:
I'll add a way to popup a regular file chooser menu.
Sounds great, thank you.
--SteveT


 

Thanks all for such a helpful response.?
Allied to this could I double check something??
If I export a roster entry the image doesn¡¯t go with the export. Is this expected behaviour??
Background: I setup my locos on a test track with Windows. When done I export that loco¡¯s entry to my RPi that runs my main layout. I currently have to transfer the roster export file and the picture jpg separately and then import the roster entry on the Pi and then add the picture.?


 

Julian,
If your RPi is network-accessible from your Windows PC, you might find it easier to use the Roster page in the JMRI web server to drag and drop your roster and image files. Make sure you drag and drop the image file first, then the .xml file. You can do these one at a time and the roster index is updated automatically.
--SteveT


 

¿ªÔÆÌåÓý

Not sure this will help you, but¡­..

I have my JMRI roster on a NAS on my home network. It¡¯s then accessible by whichever JMRI I happen to run (two Pis and two Windows) - but NOT AT THE SAME TIME

I got fed up with rosters of the same locos that weren¡¯t in sync

Phil G

On 4 Oct 2024, at 16:06, Julian Thornhill via groups.io <ngauge@...> wrote:

?
Thanks all for such a helpful response.?
Allied to this could I double check something??
If I export a roster entry the image doesn¡¯t go with the export. Is this expected behaviour??
Background: I setup my locos on a test track with Windows. When done I export that loco¡¯s entry to my RPi that runs my main layout. I currently have to transfer the roster export file and the picture jpg separately and then import the roster entry on the Pi and then add the picture.?


 

Code has been , feature will be in next release. .
?
Lionel


 

Hi;
?
You're right, exporting a roster entry only exports the regular data in a xml file, images and icons are not exported, but their pathes are, and they're relative, so you could somehow synchronize the folders where the media are stored, and they will show up.
?
Regards;
Lionel


 

I can¡¯t but help being amazed at the speed of response to my original query, thanks :)
?
?


 

¡°You're right, exporting a roster entry only exports the regular data in a xml file, images and icons are not exported, but their pathes are, and they're relative, so you could somehow synchronize the folders where the media are stored, and they will show up.¡±

Would it possibly be a sensible future enhancement for a roster entry export to, optionally, include everything??