Detection of attached devices is broken inside Flatpak
Running inside Flatpak's sandbox confuses the detection of attached devices used for importing content (#29 (closed)). See:
Poking inside the Flatpak environment shows:
[rishi@kolache ~]$ flatpak run --command=sh org.gnome.Photos//master
sh-4.3$ gio mount -li
Mount(0): Downloads -> file:///home/rishi/Downloads
Type: GUnixMount
default_location=file:///home/rishi/Downloads
themed icons: [drive-harddisk] [drive]
symbolic themed icons: [drive-harddisk-symbolic] [drive-symbolic] [drive-harddisk] [drive]
can_unmount=1
can_eject=0
is_shadowed=0
Mount(1): Pictures -> file:///home/rishi/Pictures
Type: GUnixMount
default_location=file:///home/rishi/Pictures
themed icons: [drive-harddisk] [drive]
symbolic themed icons: [drive-harddisk-symbolic] [drive-symbolic] [drive-harddisk] [drive]
can_unmount=1
can_eject=0
is_shadowed=0
sh-4.3$
Here's the corresponding output outside the Flatpak:
[rishi@kolache ~]$ gio mount -li
Drive(0): HGST HTS725050A7E630
Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
ids:
unix-device: '/dev/sda'
themed icons: [drive-harddisk] [drive]
symbolic themed icons: [drive-harddisk-symbolic] [drive-symbolic] [drive-harddisk] [drive]
is_removable=0
is_media_removable=0
has_media=1
is_media_check_automatic=1
can_poll_for_media=0
can_eject=0
can_start=0
can_stop=0
start_stop_type=shutdown
sort_key=00coldplug/00fixed/sd____a
Volume(0): rishi@owndrive.com
Type: GProxyVolume (GProxyVolumeMonitorGoa)
ids:
class: 'network'
uuid: 'davs://rishi@owndrive.com/remote.php/webdav/'
uuid=davs://rishi@owndrive.com/remote.php/webdav/
activation_root=davs://rishi@owndrive.com/remote.php/webdav
themed icons: [network-server] [network]
symbolic themed icons: [network-server-symbolic] [network-symbolic] [network-server] [network]
can_mount=1
can_eject=0
should_automount=0
Volume(1): rishi@cloud.gnome.org
Type: GProxyVolume (GProxyVolumeMonitorGoa)
ids:
class: 'network'
uuid: 'davs://rishi@cloud.gnome.org/remote.php/webdav/'
uuid=davs://rishi@cloud.gnome.org/remote.php/webdav/
activation_root=davs://rishi@cloud.gnome.org/remote.php/webdav
themed icons: [network-server] [network]
symbolic themed icons: [network-server-symbolic] [network-symbolic] [network-server] [network]
can_mount=1
can_eject=0
should_automount=0
Volume(2): debarshi.ray@gmail.com
Type: GProxyVolume (GProxyVolumeMonitorGoa)
ids:
class: 'network'
uuid: 'google-drive://debarshi.ray@gmail.com/'
uuid=google-drive://debarshi.ray@gmail.com/
activation_root=google-drive://debarshi.ray@gmail.com/
themed icons: [network-server] [network]
symbolic themed icons: [network-server-symbolic] [network-symbolic] [network-server] [network]
can_mount=1
can_eject=0
should_automount=0
Volume(3): MotoG3 TE
Type: GProxyVolume (GProxyVolumeMonitorGPhoto2)
ids:
unix-device: '/dev/bus/usb/002/004'
activation_root=gphoto2://%5Busb%3A002,004%5D/
themed icons: [camera-photo]
symbolic themed icons: [camera-photo-symbolic] [camera-symbolic] [camera-photo] [camera]
can_mount=1
can_eject=0
should_automount=1
Mount(0): MotoG3 TE -> gphoto2://%5Busb%3A002,004%5D/
Type: GProxyShadowMount (GProxyVolumeMonitorGPhoto2)
default_location=gphoto2://%5Busb%3A002,004%5D/
themed icons: [camera-photo]
symbolic themed icons: [camera-photo-symbolic] [camera-symbolic] [camera-photo] [camera]
x_content_types: x-content/image-dcf
can_unmount=1
can_eject=0
is_shadowed=0
Mount(1): MotoG3 TE -> gphoto2://%5Busb%3A002,004%5D/
Type: GDaemonMount
default_location=gphoto2://%5Busb%3A002,004%5D/
themed icons: [camera-photo] [camera]
symbolic themed icons: [camera-photo-symbolic] [camera-symbolic] [camera-photo] [camera]
x_content_types: x-content/image-dcf
can_unmount=1
can_eject=0
is_shadowed=1
[rishi@kolache ~]$
Pointed out by @uajain.
Edited by Debarshi Ray