This question is answered.


Permlink Replies: 6 - Pages: 1 - Last Post: 29-Aug-2019 20:44 Last Post By: JeffTucker Threads: [ Previous | Next ]
linuxrog

Posts: 179
Registered: 21-Nov-2008
Linux and Local access to the album's database file is blocked . . .
Posted: 27-Aug-2019 19:09
 
  Click to reply to this thread Reply
I "fixed" this issue in Linux by appending the suggested option for running Chrome from the command line:

chromium-browser %U --allow-file-access-from-files

The approach for Linux is not mentioned in the sticky post on this subject.

I'm using Ubuntu 16.04.6. YMMV.

It would be nice if this problem did not require a kludge / work-around. I prefer to NOT use Chrome.

The kludge was implemented because I'll be making a presentation in a theater without streaming from the Net.

/Roger
JeffTucker

Posts: 6,866
Registered: 31-Jan-2006
Re: Linux and Local access to the album's database file is blocked . . .
Posted: 27-Aug-2019 19:51   in response to: linuxrog in response to: linuxrog
Correct
  Click to reply to this thread Reply
This isn't really a Tiger-created problem. The browser makers have decided that accessing local JSON files is a security problem. No, I don't get it either, but they all have the same restriction.

Two solutions.

First option, install jAlbum 18.4, which can launch its own internal server for viewing previews. See Tools, Preferences, General, Preview, choose External Browser, and check Use embedded web server.

Second option, install server software on your PC, and use localhost for previews. About a two-minute fiddle on Windows, but I can't steer you to how to do it on Linux.
Laza

Posts: 2,422
Registered: 6-Sep-2005
Re: Linux and Local access to the album's database file is blocked . . .
Posted: 29-Aug-2019 09:08   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Third solution: install jAlbum 18.4 and it has an embedded web server out-of-the-box.

I believe they've banned JSON files first because of the easily hackability (script injection), but once all those vulnerabilities were fixed and everybody forgot about the root cause, it became a good old tradition. :)
JeffTucker

Posts: 6,866
Registered: 31-Jan-2006
Re: Linux and Local access to the album's database file is blocked . . .
Posted: 29-Aug-2019 12:47   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Laza wrote:
Third solution: install jAlbum 18.4 and it has an embedded web server out-of-the-box.

Which is suspiciously like my first option. ;)
linuxrog

Posts: 179
Registered: 21-Nov-2008
Re: Linux and Local access to the album's database file is blocked . . .
Posted: 29-Aug-2019 18:36   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thanks, guys. Both solutions worked for me. (Not the install a server). The previously suggested solution of adding

--allow-file-access-from-files

to the command line for starting Chrome does the job. I found it also works for my newly preferred browser, Vivaldi, with the command to start Vivaldi modified thusly:

/usr/bin/vivaldi-stable %U --allow-file-access-from-files

I guess this is because Vivaldi is based on chrome.

Thanks again.

/Roger
Laza

Posts: 2,422
Registered: 6-Sep-2005
Re: Linux and Local access to the album's database file is blocked . . .
Posted: 29-Aug-2019 20:12   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Aaaah, I can't believe how short is my memory. :)
JeffTucker

Posts: 6,866
Registered: 31-Jan-2006
Re: Linux and Local access to the album's database file is blocked . . .
Posted: 29-Aug-2019 20:44   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Laza wrote:
Aaaah, I can't believe how short is my memory. :)

I know the feeling. Any list with more than one item is a problem.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums