Announcement

Collapse
No announcement yet.

Certain mounted folders are invisible in certain applications - Chromium, Foobar2000

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [DESKTOP] Certain mounted folders are invisible in certain applications - Chromium, Foobar2000

    I have some NTFS partitions mounted as folders, e.g. one at /music (top level). This works fine in most applications, but to certain applications these NTFS folders are invisible. I don't get any error message; I simply don't see the folders at all when browsing for files and folders.

    Applications that exhibit the problem include Chromium and the Foobar2000 music player.

    Applications that work fine include Dolphin, Firefox and Clementine.

    I also had this problem in Kubuntu 19.10, but never in 18.04.

    My /etc/fstab contains this:

    Code:
    UUID=2D67F493580046AC  /music  ntfs-3g  defaults,windows_names,locale=en_US.utf8  0 0
    My /etc/mtab contains this:

    Code:
    /dev/sda3 /music fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
    Does anyone know what could be wrong? Thanks in advance!

    #2
    Sorry if this isn't helpful, but do you still use Windows?

    I used to have some weird problems with this sort of stuff too. I had Windows dual booted with Kubuntu on my SSD, and I had two NTFS HDDs - one for media and one for games. I stopped using Windows entirely in 2018. My NTFS drive issues were bugging me, so not too long ago, I made backups of my media and games, and formatted both drives as ext4. All the issues went away.

    If you're done using Windows on that machine, that would certainly be a way of ending your problem.
    Gaming/HTPC: Kubuntu 23.10 | MSI B450 Gaming+ MAX Motherboard | AMD Ryzen 5 3600XT @ 3.8GHz (x12) CPU | RX6700XT 12GB GPU | 32 GB DDR4 RAM
    Laptop: Kubuntu 23.04.1 | 2012 MacBook Pro | i7 @ 2.9GHz (x4) CPU | 16 GB DDR3 RAM​

    Comment


      #3
      NTFS has a proper "hidden" attribute, not the ancient kludge *nix derived file systems use with "dot files". Maybe those applications are respecting the hidden attribute?
      Regards, John Little

      Comment


        #4
        Originally posted by bradleypariah View Post
        Sorry if this isn't helpful, but do you still use Windows?
        I still use Windows, yes.

        I've experimented, and it turns out that apparently the NTFS mounts are not the problem. Chromium can't see any custom top-level folders. I added a folder /test which is empty. Chromium doesn't acknowledge that it exists.

        My folders (/music and /test) look perfectly sane when I ll them (compared to /bin, /home and /proc, which are perfectly visible):

        Code:
        spectrum@spectrum-desktop:~$ ll /  
        total 128
        drwxr-xr-x  24 root root  4096 Apr 28 12:56 ./
        ...
        drwxr-xr-x   3 root root  4096 Apr 26 14:11 home/
        ...
        drwxrwxrwx   1 root root  8192 Apr 28 07:42 music/
        ...
        dr-xr-xr-x 305 root root     0 Apr 28 12:31 proc/
        ...
        drwxr-xr-x   2 root root  4096 Apr 28 12:56 test/
        ...
        spectrum@spectrum-desktop:~$ ls /test/ 
        spectrum@spectrum-desktop:~$
        Moreover: If I create a symbolic link to one of these "invisible" folders, then the file dialog in Chromium can see the symlink, but it doesn't understand it as a link. It just interprets it as a file. If I double-click on it, it doesn't go to the folder; it just selects the link itself.

        Does anyone have a clue what is going on?
        Last edited by Spectrum; Apr 28, 2020, 05:11 AM.

        Comment


          #5
          Are both Chromium and the Foobar2000 music player installed as snaps?
          Last edited by Schwarzer Kater; Apr 28, 2020, 09:59 AM. Reason: typos
          Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
          Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

          get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
          install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

          Comment


            #6
            Originally posted by Schwarzer Kater View Post
            Are both Chromium and the Foobar2000 music player installed as snaps?
            Ooooo! Yes, I believe they are.

            Comment


              #7
              For snaps, by default have access to access to $HOME, /media/, /mnt/ so mounts outside of these areas they cannot access. if you put the mounts in the XDG standard places such as /media/username, or /mnt, they might show up.
              You may have to adjust the permissions for the snap to add this support.

              This of course depends on the nap creator which permiossions are set. leafpad, for example, has this set, for obvious reason. I think a web browser having access to places out of the norm may be a small safety consideration.

              fwiw, flatpaks have similar sandboxing restiction options as well.

              Luckily with the latest Discover, there is now the option to view and change snap 'connections'


              Click image for larger version

Name:	Screenshot_20200428_173947.jpg
Views:	1
Size:	49.8 KB
ID:	644673


              Click image for larger version

Name:	Screenshot_20200428_174053.jpg
Views:	1
Size:	42.4 KB
ID:	644674

              Comment


                #8
                Originally posted by claydoh View Post
                For snaps, by default have access to [FONT=Arial][COLOR=#242729]access to $HOME, /media/, /mnt/ so mounts outside of these areas they cannot access. if you put the mounts in the XDG standard places such as /media/username, or /mnt, they might show up.
                You may have to adjust the permissions for the snap to add this support.

                This of course depends on the nap creator which permiossions are set. leafpad, for example, has this set, for obvious reason. I think a web browser having access to places out of the norm may be a small safety consideration.

                fwiw, flatpaks have similar sandboxing restiction options as well.

                Luckily with the latest Discover, there is now the option to view and change snap 'connections'
                Thanks. But checking removable-media doesn't seem to help.

                Comment

                Working...
                X