Bug 429379 - Gdrive not showing in application file selector
Summary: Gdrive not showing in application file selector
Status: RESOLVED UPSTREAM
Alias: None
Product: kio-gdrive
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-20 04:08 UTC by ian+bugs.kde.org
Modified: 2022-09-15 22:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Dolphin screenshot (108.52 KB, image/png)
2020-12-30 05:28 UTC, ian+bugs.kde.org
Details
KDialog file selector (68.08 KB, image/png)
2020-12-30 05:30 UTC, ian+bugs.kde.org
Details
Show hidden places (20.37 KB, image/png)
2021-01-02 23:00 UTC, ian+bugs.kde.org
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ian+bugs.kde.org 2020-11-20 04:08:44 UTC
SUMMARY
Manjaro linux, kio-gdrive version 20.08.3-1.
Gdrive is connected and available in Dolphin browser, but is not available in file selector

Programs tested:
Google chrome (google-chrome 87.0.4280.66-1)
Chromium (chromium 87.0.4280.66-1)
Firefox (firefox 83.0-1)
Libreoffice Write (libreoffice-still 6.4.7-2)


STEPS TO REPRODUCE
1. Go to open a file from inside the application (eg. upload a file in one of the browsers)
2.
3. 

OBSERVED RESULT
Network shortcut (like in Dolphin) not showing
kio-gdrive folder (gdrive:) not showing

EXPECTED RESULT
Retain "shortcuts" as created in Dolphin.


SOFTWARE/OS VERSIONS
KDE Plasma: 5.20.3
KDE Frameworks: 5.76.0
QT version: 5.15.1
Kernel Version: 5.9.8-2-MANJARO
IS type: 64-Bit

ADDITIONAL INFORMATION
Comment 1 Elvis Angelaccio 2020-12-28 18:01:00 UTC
Works for me. Can you attach a screenshot of your file selector window?
Comment 2 ian+bugs.kde.org 2020-12-30 05:28:53 UTC
Created attachment 134391 [details]
Dolphin screenshot

Dolphin Screenshot showing KIO-based Google Drive open and expanded (contents blurred).
Comment 3 ian+bugs.kde.org 2020-12-30 05:30:41 UTC
Created attachment 134392 [details]
KDialog file selector

File selector opened showing that KIO-gdrive is not available in the list (in fact, none of the "remote" connections are).

Screenshot taken during uploading "Dolphin" screenshot.
Comment 4 ian+bugs.kde.org 2020-12-30 05:32:27 UTC
(In reply to Elvis Angelaccio from comment #1)
> Works for me. Can you attach a screenshot of your file selector window?

Thanks @Elvis.  I've attached screenshots of both Dolphin (showing KIO-Gdrive in Dolphin) and from Chrome file selector (eg. uploading screenshot here).
Comment 5 Elvis Angelaccio 2021-01-02 18:10:09 UTC
It seems to me you are missing the whole "Network", "Recent" and "Search for" sections in the file selector. Are they hidden maybe? (right-click -> show hidden places)
Comment 6 ian+bugs.kde.org 2021-01-02 23:00:46 UTC
Created attachment 134491 [details]
Show hidden places

Thanks Elvis,
Looks like you're correct there's no network option at all.
I deliberately hid "Devices" to make the "show all entries" option available, but without success.

There's no option in to show Network Places or Search anywhere in kDialog (window title).

Any thoughts where to look next?
Comment 7 Elvis Angelaccio 2021-01-05 17:14:13 UTC
You could try looking at your ~/.local/share/user-places.xbel file.
Comment 8 ian+bugs.kde.org 2021-01-07 04:50:04 UTC
Thanks Elvis.

I checked the xbel file and the sections are in there (and not hidden).  I hid and unhid the Remote secion in Dolphin to confirm I was looking at the correct areas (and saw expected changes).

Stumbled across this - could it be related?
https://www.reddit.com/r/kde/comments/8td8hd/sections_missing_from_kdialogs_places_navigation/

Typing in "remote:/" for the location doesn't work.

Trying the different options as indicated in the reddit entry:
kdialog --getopenurl
kdialog --getopenfilename

yield different views as described:
getopenurl shows all the places, whereas 
getopenfilename is missing entries like Recent and Remote

Is there a way to force getopenfilename to show the same as getopenurl?
Comment 9 Elvis Angelaccio 2021-01-09 17:34:58 UTC
(In reply to ian+bugs.kde.org from comment #8)
> Thanks Elvis.
> 
> I checked the xbel file and the sections are in there (and not hidden).  I
> hid and unhid the Remote secion in Dolphin to confirm I was looking at the
> correct areas (and saw expected changes).
> 
> Stumbled across this - could it be related?
> https://www.reddit.com/r/kde/comments/8td8hd/
> sections_missing_from_kdialogs_places_navigation/
>

Yes, indeed.
 
> Typing in "remote:/" for the location doesn't work.
> 
> Trying the different options as indicated in the reddit entry:
> kdialog --getopenurl
> kdialog --getopenfilename
> 
> yield different views as described:
> getopenurl shows all the places, whereas 
> getopenfilename is missing entries like Recent and Remote
> 
> Is there a way to force getopenfilename to show the same as getopenurl?

Nope, that's intentional.

So, what's your goal? Upload a file on Firefox from gdrive:// ? That's not possible because Firefox doesn't support KIO protocols.
Comment 10 Elvis Angelaccio 2022-09-15 22:48:19 UTC
Closing.