tchx84 / Portfolio

A minimalist file manager for those who want to use Linux mobile devices.
GNU General Public License v3.0
94 stars 23 forks source link

External devices (MicroSD and drives) not shown without mouting the device first. #209

Closed ahoneybun closed 2 years ago

ahoneybun commented 3 years ago

When using the application using Arch Linux ARM (ALARM) on the PinePhone 3GB model I'm not seeing the card even if I have it formatted and it shows up in lsblk.

tchx84 commented 3 years ago

Have you mounted it?

ahoneybun commented 3 years ago

Yes does it matter where it is mounted? I tried a folder in /mnt and ~/. If it has a FAT partition it should just show up to then click and mount.

tchx84 commented 3 years ago

weird, is this the Flatpak version or the system packaged one?

ahoneybun commented 3 years ago

It is the one packaged in Arch Linux ARM and it looks like it is version 0.9.12-1.

EDIT: So it does show up if I mount it in ~/ExtraDrive

(a folder that I created to mount it to. I think this is more about how the application handles devices when they are connected with a valid file system. Should the user need to mount it using the terminal or GNOME Disks?

tchx84 commented 3 years ago

weird, Ill investigate as soon as I get some free time again.

ahoneybun commented 3 years ago

Thank you! I would help as much as I can!

tchx84 commented 3 years ago

@ahoneybun I current don't have a way to test it, so ill need your help:

  1. Build this branch using https://github.com/tchx84/Portfolio#build-it-yourself (double check the system one is gone for the test)
  2. Make sure your external SD card is not mounted.
  3. Launch Portfolio.

In theory, this should auto-mount any volume capable of doing so..., but since I can't test I can't be completely sure about the nuances.

ahoneybun commented 3 years ago

I'll try that out later today!

ahoneybun commented 3 years ago

Alright so it doesn't show any devices using those steps on Manjaro.

tchx84 commented 3 years ago

Alright so it doesn't show any devices using those steps on Manjaro.

oh well, I guess I will need to figure out a way to test this.

ahoneybun commented 3 years ago

If you want to setup a testing flatpak repo for me to test I'll gladly do that or keep building it from source.

ahoneybun commented 3 years ago

Ah I think I didn't change branches, did you want me to use the auto-mount one? Sorry about that.

ahoneybun commented 3 years ago

Same behavior I believe.

tchx84 commented 3 years ago

I will come back to this ASAP (a bit busy with Flatseal ATM), but if someone wants to give it try meanwhile... more than welcome.

tchx84 commented 3 years ago

I finally found the time to get back to this (see #215 ), and I made some progress, but I need to find a usb-c dock to actually test this :sweat: ... it should work with external removable drives, at least. @ahoneybun if you do have such dock, can you test it?

Another thing I am trying to figure is why GIO is not detecting the internal SD drive... but well, one problem a at time.

ahoneybun commented 3 years ago

@tchx84 I have the hub/dock that comes with the PinePhone will that work for testing? If so can you put together a test list for me to run though?

tchx84 commented 3 years ago

@tchx84 I have the hub/dock that comes with the PinePhone will that work for testing? If so can you put together a test list for me to run though?

Let's start by the most simple test:

  1. pull the latest from that branch (I just pushed something extra)
  2. build the app and install it.
  3. connect the dock and connect a usb drive to the dock
  4. run Portolio
  5. the usb drive should be visible on the devices section
tchx84 commented 3 years ago

@tchx84 I have the hub/dock that comes with the PinePhone will that work for testing? If so can you put together a test list for me to run though?

Let's start by the most simple test:

  1. pull the latest from that branch (I just pushed something extra)
  2. build the app and install it.
  3. connect the dock and connect a usb drive to the dock
  4. run Portolio
  5. the usb drive should be visible on the devices section

Sadly, this new approach won't work either, since Gio relies on gvfs for these drive detection and volume mounting operations... I guess I am back to square one and ill need to do something else.

ahoneybun commented 3 years ago

Oh darn.

tchx84 commented 2 years ago

Oh darn.

@ahoneybun Here we go again :sweat_smile: , now I am trying a completely different approach. Try it with Flatpak! :)

See #223

tchx84 commented 2 years ago

@Danct12 if you can give #223 a try, non-flatpak, as well :) it would be very much appreciated.

I suspect that on non-flatpak could require extra polkit similar to https://gist.github.com/Scrumplex/8f528c1f63b5f4bfabe14b0804adaba7