Permission Denied Opening PDF in google-drive-ocamlfuse Mount
Categories
(Firefox :: PDF Viewer, defect)
Tracking
()
People
(Reporter: nia.tina.so, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
Steps to reproduce:
Steps to Reproduce
- Use
google-drive-ocamlfuse
to mount Google Drive to a folder within the home directory. Refer to the mounted folder as Folder F. - Place any PDF file (referred to as File A) in Folder F.
- In KDE system settings, set Firefox as the top-level application associated with PDF files.
- Open Dolphin file manager, navigate to File A, and double-click on it.
Features
- Any PDF file located outside Folder F within the home directory can be opened using the steps 3. to 4..
- File A can also be opened using the steps 3. to 4. in Google Chrome.
- In the terminal, executing the command
firefox 'path to File A'
successfully opens File A.
Investigation Steps
-
Compile the following C++ code and set the top-level application associated with PDF files in KDE system settings to its executable file (referred to as File E).
#include <stdlib.h> #include <string> int main(int argc, char *argv[]) { std::string log_file_path = "Log file path"; std::string command0 = "id >> \"" + (log_file_path + "\""); system(command0.c_str()); std::string command1 = "firefox \"" + (argv[1] + ("\" >> \"" + (log_file_path + "\" 2>&1"))); system(command1.c_str()); }
-
Open File A in Dolphin file manager and double-click on it.
-
The result was successful execution of File E, but displaying File A failed.
The following log was generated:
uid=1000(myname) gid=1000(myname) groups=1000(myname),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),133(lxd),134(sambashare)
cannot open the path of the current working directory: Permission denied
The "Permission denied" message led to the inference that the failure in step 1. was also due to this issue. Note that this method can open any PDF file located outside Folder F within the home directory using steps 2. to 2..
In the terminal, after successfully executing the command firefox 'path to File A'
, running the command id
immediately yielded the same output as in step 2.:
uid=1000(myname) gid=1000(myname) groups=1000(myname),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),133(lxd),134(sambashare)
Actual results:
Actual Results
The Firefox window to display File A does not appear. Specifically, only the cursor with a Firefox-like icon is displayed, and no error messages are shown.
Expected results:
Expected Results
File A should be displayed in the Firefox window.
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 1•1 year ago
|
||
Set Firefox as the top-level application associated with PDF files.
myname@myname:~$ kde-open "/home/sotanitanai/ドキュメント/niatinaso_gdrive/ドキュメント/Linux/FireFoxのPDFバグ解消/Adobe Scan 2023_12_03.pdf"
cannot open path of the current working directory: Permission denied
Comment 2•1 year ago
|
||
I've followed the STR from Comment 0 and tried to reproduce this issue in Firefox Snap 120.01 using Ubuntu 22.04, but I didn't receive any Permission denied error in terminal.
Waiting for the developer's thoughts on this for now.
Reporter | ||
Updated•1 year ago
|
Description
•