Announcement

Collapse
No announcement yet.

Custom partition scheme: places in Dolphin don't appear in Upload box

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

    Custom partition scheme: places in Dolphin don't appear in Upload box

    I have tinkered with my mounting scheme, separating /data and /home to make it easy to switch between distributions. My data isn't in /home, it's in /data...

    I added a few useful places to the sidebar in Dolphin:

    Click image for larger version

Name:	Dolphin.jpg
Views:	1
Size:	53.0 KB
ID:	648078

    But they don't appear in the upload file selector for web pages (like this forum):

    Click image for larger version

Name:	upload.png
Views:	1
Size:	62.3 KB
ID:	648077

    Any way to customise this? I can always browse through from "file system" but it takes a bit of time, it would be cool if I could display documents, photos etc. in the sidebar.

    Feathers
    Last edited by Snowhog; Jan 17, 2014, 11:37 PM.
    samhobbs.co.uk

    #2
    That's from Firefox, right? It doesn't integrate with KDE out of the box. You'll need to install the version from the Blue Shell PPA.

    Comment


      #3
      Nope, chromium
      samhobbs.co.uk

      Comment


        #4
        Hrm... on my box, Chromium uses the system file picker. Did you install from the normal *buntu repository?

        Comment


          #5
          Yep, standard repo.

          It normally shows pictures, documents etc on the left as shortcuts but in this case it isn't because I've moved them to another partition...
          samhobbs.co.uk

          Comment


            #6
            Is kde-baseapps-bin installed on your computer? This package contains kdialog, which Chromium should use to display the KDE file dialog.

            Comment


              #7
              Code:
              feathers@62-West-Wallaby-Street:~$ sudo apt-get install kde-baseapps-bin
              Reading package lists... Done
              Building dependency tree       
              Reading state information... Done
              kde-baseapps-bin is already the newest version.
              0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
              feathers@62-West-Wallaby-Street:~$
              I think the KDE file dialog is installed but is confused because I've moved those directories.

              Click image for larger version

Name:	paths.png
Views:	1
Size:	99.5 KB
ID:	640603
              samhobbs.co.uk

              Comment


                #8
                You can see the KDE file picker by running
                Code:
                kdialog --getopenfilename [i]directory[/i]
                Try it -- substitute ~ for directory in the command.

                The image you pasted in post #1 is definitely the Gtk+ file picker. I have no clue why Chromium is using that on your machine. Wait, do you have any Nautilus packages installed?

                Comment


                  #9
                  Aha! So this is what it's supposed to look like?

                  Click image for larger version

Name:	kdialog--getopenfilename.png
Views:	1
Size:	83.9 KB
ID:	640605

                  I don't think I have any nautilus packages installed...

                  Code:
                  dpkg --get-selections | grep nautilus
                  ...returned no results.

                  Feathers
                  samhobbs.co.uk

                  Comment


                    #10
                    Yep, that's exactly what you should get.

                    Many moons ago, support for KDialog was added to Chromium. See the Git commit for the code.

                    Comment


                      #11
                      If you create a new user, then log into that account, does Chromium still display the Gtk+ file picker? Easy way to check: just open Chromium and choose Menu -> Save page as.

                      Comment


                        #12
                        Please check System Settings -> File Associations. Go to inode -> directory. What's in the Application Preference Order list?

                        Comment


                          #13
                          Curiouser and curiouser... if I use save page as (default user, the same one that brings up GTK+ file picker when I try to upload a photo to the forum)... I get the KDialog!

                          Click image for larger version

Name:	save-page-as.png
Views:	1
Size:	98.2 KB
ID:	640607

                          I've actually just noticed that if I use the "basic uploader" when uploading images, I get the KDialog too. It's just the default uploader, which seems to be trying something else, that brings up the GTK+ file picker.



                          Feathers
                          samhobbs.co.uk

                          Comment


                            #14
                            Originally posted by Feathers McGraw View Post
                            I've actually just noticed that if I use the "basic uploader" when uploading images, I get the KDialog too. It's just the default uploader, which seems to be trying something else, that brings up the GTK+ file picker.
                            Hm. I think we might be narrowing down the problem. On my machine, with Chromium, the basic uploader also opens KDialog. However, on the normal uploader, the Select Files button does absolutely nothing.

                            Do me a favor. Start Chromium, go to the forum, and begin a new post. Now open a console window. In the window, type:
                            Code:
                            lsof / | awk '{print $9}' | sort -u >z.z
                            Back in the browser, click the button to upload an image, and click Select Files. Leave the file picker open, don't do anything with it. Now back in the console, type:
                            Code:
                            lsof / | awk '{print $9}' | sort -u >x.x
                            z.z will contain a list of all files opened by all running processes before you clicked Select Files. x.x will contain the list after you clicked. Presumably, some new process is handling this Gtk+ file picker. Let's find out what's different in the two files:
                            Code:
                            diff z.z x.x
                            Please copy/pasta the output of the diff command.

                            Comment


                              #15
                              Code:
                              feathers@62-West-Wallaby-Street:~$ diff z.z x.x
                              165a166
                              > /usr/lib/flashplugin-installer/libflashplayer.so
                              234a236
                              > /usr/lib/kde4/kio_file.so
                              506a509
                              > /usr/lib/x86_64-linux-gnu/libcurl.so.4.3.0
                              556a560
                              > /usr/lib/x86_64-linux-gnu/libidn.so.11.6.11
                              617a622
                              > /usr/lib/x86_64-linux-gnu/librtmp.so.0
                              624a630
                              > /usr/lib/x86_64-linux-gnu/libssl3.so
                              806a813
                              > /usr/share/locale/en_GB/LC_MESSAGES/processcore.mo
                              samhobbs.co.uk

                              Comment

                              Working...
                              X