How to configure what starts when inserting a medium in Lubuntu / LXQt? The 2019 Stack Overflow Developer Survey Results Are InWhere are file associations stored?How can I integrate Dropbox with PCManFM?Preventing pop-up dialogs when connecting an MTP deviceHow to open mtp files from a Sony Walkman in LubuntuFirefox crashes when opening file . Upgraded from 14.04.4 to 16.04 lubuntu (on top of ubuntu)PCmanFM - How can I remove an entry from the context menu?Is there a workaround for the removal of “Copy Path” in pcmanfm-qt?Lubuntu 18.10 LXQt desktop no user login after bootingLubuntu 18.10 pcmanfm-qt does not access samba sharesLubuntu 18.10 File Manager: How to view directory tree structure?Linux File Manager: Restore previous open session (folders and tab)

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

What is the closest word meaning "respect for time / mindful"

Multiply Two Integer Polynomials

Is flight data recorder erased after every flight?

Apparent duplicates between Haynes service instructions and MOT

What is the meaning of the verb "bear" in this context?

Is bread bad for ducks?

One word riddle: Vowel in the middle

"as much details as you can remember"

Can we generate random numbers using irrational numbers like π and e?

Why do UK politicians seemingly ignore opinion polls on Brexit?

What is the accessibility of a package's `Private` context variables?

How to notate time signature switching consistently every measure

Are there incongruent pythagorean triangles with the same perimeter and same area?

Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?

Worn-tile Scrabble

Are there any other methods to apply to solving simultaneous equations?

Falsification in Math vs Science

What is the meaning of Triage in Cybersec world?

How come people say “Would of”?

Time travel alters history but people keep saying nothing's changed

Is this app Icon Browser Safe/Legit?

How to type this arrow in math mode?

How can I autofill dates in Excel excluding Sunday?



How to configure what starts when inserting a medium in Lubuntu / LXQt?



The 2019 Stack Overflow Developer Survey Results Are InWhere are file associations stored?How can I integrate Dropbox with PCManFM?Preventing pop-up dialogs when connecting an MTP deviceHow to open mtp files from a Sony Walkman in LubuntuFirefox crashes when opening file . Upgraded from 14.04.4 to 16.04 lubuntu (on top of ubuntu)PCmanFM - How can I remove an entry from the context menu?Is there a workaround for the removal of “Copy Path” in pcmanfm-qt?Lubuntu 18.10 LXQt desktop no user login after bootingLubuntu 18.10 pcmanfm-qt does not access samba sharesLubuntu 18.10 File Manager: How to view directory tree structure?Linux File Manager: Restore previous open session (folders and tab)



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















When I insert a USB mass storage device or SD card, Lubuntu 18.10 (using LXQt) would show really odd behavior.



  1. For USB mass storage devices but not for SD cards, a popup by the PCManFM-Qt file manager would appear, asking what to do.


  2. For all devices, additionally a small black popover window in the bottom right would appear, showing the filesystem label and a mount icon.



  3. When clicking in the small black popover, really strange stuff happened:



    • the music player Audacious would start, scan the medium and create a playlist; this behavior started after I used the Gnome file manager Nautilus once under the Lubuntu desktop environment


    • after getting rid of Audacious, the disk usage analyzer Baobab would be started for every newly inserted medium


    • after getting rid of Baobab, the Gnome file manager Nautilus would be started for every newly inserted medium even though this is the LXQt desktop environment



How can I configure what is executed for a newly inserted medium? I would like the pcmanfm-qt file manager of LXQt to start for every newly inserted medium. And I'd like to understand what causes this odd behavior and how to configure things in a systematic way.










share|improve this question






























    0















    When I insert a USB mass storage device or SD card, Lubuntu 18.10 (using LXQt) would show really odd behavior.



    1. For USB mass storage devices but not for SD cards, a popup by the PCManFM-Qt file manager would appear, asking what to do.


    2. For all devices, additionally a small black popover window in the bottom right would appear, showing the filesystem label and a mount icon.



    3. When clicking in the small black popover, really strange stuff happened:



      • the music player Audacious would start, scan the medium and create a playlist; this behavior started after I used the Gnome file manager Nautilus once under the Lubuntu desktop environment


      • after getting rid of Audacious, the disk usage analyzer Baobab would be started for every newly inserted medium


      • after getting rid of Baobab, the Gnome file manager Nautilus would be started for every newly inserted medium even though this is the LXQt desktop environment



    How can I configure what is executed for a newly inserted medium? I would like the pcmanfm-qt file manager of LXQt to start for every newly inserted medium. And I'd like to understand what causes this odd behavior and how to configure things in a systematic way.










    share|improve this question


























      0












      0








      0


      1






      When I insert a USB mass storage device or SD card, Lubuntu 18.10 (using LXQt) would show really odd behavior.



      1. For USB mass storage devices but not for SD cards, a popup by the PCManFM-Qt file manager would appear, asking what to do.


      2. For all devices, additionally a small black popover window in the bottom right would appear, showing the filesystem label and a mount icon.



      3. When clicking in the small black popover, really strange stuff happened:



        • the music player Audacious would start, scan the medium and create a playlist; this behavior started after I used the Gnome file manager Nautilus once under the Lubuntu desktop environment


        • after getting rid of Audacious, the disk usage analyzer Baobab would be started for every newly inserted medium


        • after getting rid of Baobab, the Gnome file manager Nautilus would be started for every newly inserted medium even though this is the LXQt desktop environment



      How can I configure what is executed for a newly inserted medium? I would like the pcmanfm-qt file manager of LXQt to start for every newly inserted medium. And I'd like to understand what causes this odd behavior and how to configure things in a systematic way.










      share|improve this question
















      When I insert a USB mass storage device or SD card, Lubuntu 18.10 (using LXQt) would show really odd behavior.



      1. For USB mass storage devices but not for SD cards, a popup by the PCManFM-Qt file manager would appear, asking what to do.


      2. For all devices, additionally a small black popover window in the bottom right would appear, showing the filesystem label and a mount icon.



      3. When clicking in the small black popover, really strange stuff happened:



        • the music player Audacious would start, scan the medium and create a playlist; this behavior started after I used the Gnome file manager Nautilus once under the Lubuntu desktop environment


        • after getting rid of Audacious, the disk usage analyzer Baobab would be started for every newly inserted medium


        • after getting rid of Baobab, the Gnome file manager Nautilus would be started for every newly inserted medium even though this is the LXQt desktop environment



      How can I configure what is executed for a newly inserted medium? I would like the pcmanfm-qt file manager of LXQt to start for every newly inserted medium. And I'd like to understand what causes this odd behavior and how to configure things in a systematic way.







      lubuntu usb-storage lxqt audacious






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday







      tanius

















      asked 2 days ago









      taniustanius

      2,6321823




      2,6321823




















          1 Answer
          1






          active

          oldest

          votes


















          1














          The system how LXQt decides what to start when a medium is inserted, and why it can show odd behaviors, is well explained here. In short, LXQt starts will start whatever application is configured to handle the inode/mount-point (pseudo-)mimetype. This is influenced both by installing applications (which associate themselves with a mimetype) and desktop environments (which can change defaults), leading to a mess. In this case, I had installed LXQt on top of a normal Ubuntu installation.



          Fortunately, there is a simple way to override the system's default mime-type associations with per-user settings:



          Instructions



          1. Open the LXQt Configuration Center (lxqt-config) and click on "File Associations" there. Or directly start lxqt-config-file-associations.


          2. Navigate to "inode → mount-point", click "Change", and choose "PCManFM-Qt File Manager", the default file manager of LXQt.



          3. Let's also disable the additional popup of PCManFM-Qt when inserting a medium. (Reasons: it does not appear for SD cards which seems to be a bug, it is redundant anyway as there's still the bottom right popover, and the PCManFM-Qt popup is not part of the planned "proper solution" in the future.)



            1. In PCManFM-Qt, go to "Edit → Preferences → Volume".


            2. In section "Auto Mount", uncheck all three options.


            3. Confirm with "OK".



          Background information



          The small popover in the bottom right that appears when inserting a medium is created by the "Removable Media" panel widget of LXQt. When removing that widget, the popover no longer happens. That is why we only have to care about how to configure that piece of LXQt – what your other installed file managers and desktop environments would start when a medium is inserted is not relevant,as they don't get the chance to do so under LXQt.



          Since Ubuntu 15.04, the user-specific mimetype settings are stored in ~/.config/mimeapps.list (source). Lubuntu / LXQt stores its own changes made with the lxqt-config-file-associations tool also in that file. So you could apply the instructions from above also by directly editing ~/.config/mimeapps.list and adding one line in section "Default Applications":



          [Default Applications]
          inode/mount-point=pcmanfm-qt.desktop;


          The syntax of the mimeapps.list file is explained in this answer, while this answer shows what mimeapps.list file will be chosen if multiple ones exist on a system.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132186%2fhow-to-configure-what-starts-when-inserting-a-medium-in-lubuntu-lxqt%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            The system how LXQt decides what to start when a medium is inserted, and why it can show odd behaviors, is well explained here. In short, LXQt starts will start whatever application is configured to handle the inode/mount-point (pseudo-)mimetype. This is influenced both by installing applications (which associate themselves with a mimetype) and desktop environments (which can change defaults), leading to a mess. In this case, I had installed LXQt on top of a normal Ubuntu installation.



            Fortunately, there is a simple way to override the system's default mime-type associations with per-user settings:



            Instructions



            1. Open the LXQt Configuration Center (lxqt-config) and click on "File Associations" there. Or directly start lxqt-config-file-associations.


            2. Navigate to "inode → mount-point", click "Change", and choose "PCManFM-Qt File Manager", the default file manager of LXQt.



            3. Let's also disable the additional popup of PCManFM-Qt when inserting a medium. (Reasons: it does not appear for SD cards which seems to be a bug, it is redundant anyway as there's still the bottom right popover, and the PCManFM-Qt popup is not part of the planned "proper solution" in the future.)



              1. In PCManFM-Qt, go to "Edit → Preferences → Volume".


              2. In section "Auto Mount", uncheck all three options.


              3. Confirm with "OK".



            Background information



            The small popover in the bottom right that appears when inserting a medium is created by the "Removable Media" panel widget of LXQt. When removing that widget, the popover no longer happens. That is why we only have to care about how to configure that piece of LXQt – what your other installed file managers and desktop environments would start when a medium is inserted is not relevant,as they don't get the chance to do so under LXQt.



            Since Ubuntu 15.04, the user-specific mimetype settings are stored in ~/.config/mimeapps.list (source). Lubuntu / LXQt stores its own changes made with the lxqt-config-file-associations tool also in that file. So you could apply the instructions from above also by directly editing ~/.config/mimeapps.list and adding one line in section "Default Applications":



            [Default Applications]
            inode/mount-point=pcmanfm-qt.desktop;


            The syntax of the mimeapps.list file is explained in this answer, while this answer shows what mimeapps.list file will be chosen if multiple ones exist on a system.






            share|improve this answer





























              1














              The system how LXQt decides what to start when a medium is inserted, and why it can show odd behaviors, is well explained here. In short, LXQt starts will start whatever application is configured to handle the inode/mount-point (pseudo-)mimetype. This is influenced both by installing applications (which associate themselves with a mimetype) and desktop environments (which can change defaults), leading to a mess. In this case, I had installed LXQt on top of a normal Ubuntu installation.



              Fortunately, there is a simple way to override the system's default mime-type associations with per-user settings:



              Instructions



              1. Open the LXQt Configuration Center (lxqt-config) and click on "File Associations" there. Or directly start lxqt-config-file-associations.


              2. Navigate to "inode → mount-point", click "Change", and choose "PCManFM-Qt File Manager", the default file manager of LXQt.



              3. Let's also disable the additional popup of PCManFM-Qt when inserting a medium. (Reasons: it does not appear for SD cards which seems to be a bug, it is redundant anyway as there's still the bottom right popover, and the PCManFM-Qt popup is not part of the planned "proper solution" in the future.)



                1. In PCManFM-Qt, go to "Edit → Preferences → Volume".


                2. In section "Auto Mount", uncheck all three options.


                3. Confirm with "OK".



              Background information



              The small popover in the bottom right that appears when inserting a medium is created by the "Removable Media" panel widget of LXQt. When removing that widget, the popover no longer happens. That is why we only have to care about how to configure that piece of LXQt – what your other installed file managers and desktop environments would start when a medium is inserted is not relevant,as they don't get the chance to do so under LXQt.



              Since Ubuntu 15.04, the user-specific mimetype settings are stored in ~/.config/mimeapps.list (source). Lubuntu / LXQt stores its own changes made with the lxqt-config-file-associations tool also in that file. So you could apply the instructions from above also by directly editing ~/.config/mimeapps.list and adding one line in section "Default Applications":



              [Default Applications]
              inode/mount-point=pcmanfm-qt.desktop;


              The syntax of the mimeapps.list file is explained in this answer, while this answer shows what mimeapps.list file will be chosen if multiple ones exist on a system.






              share|improve this answer



























                1












                1








                1







                The system how LXQt decides what to start when a medium is inserted, and why it can show odd behaviors, is well explained here. In short, LXQt starts will start whatever application is configured to handle the inode/mount-point (pseudo-)mimetype. This is influenced both by installing applications (which associate themselves with a mimetype) and desktop environments (which can change defaults), leading to a mess. In this case, I had installed LXQt on top of a normal Ubuntu installation.



                Fortunately, there is a simple way to override the system's default mime-type associations with per-user settings:



                Instructions



                1. Open the LXQt Configuration Center (lxqt-config) and click on "File Associations" there. Or directly start lxqt-config-file-associations.


                2. Navigate to "inode → mount-point", click "Change", and choose "PCManFM-Qt File Manager", the default file manager of LXQt.



                3. Let's also disable the additional popup of PCManFM-Qt when inserting a medium. (Reasons: it does not appear for SD cards which seems to be a bug, it is redundant anyway as there's still the bottom right popover, and the PCManFM-Qt popup is not part of the planned "proper solution" in the future.)



                  1. In PCManFM-Qt, go to "Edit → Preferences → Volume".


                  2. In section "Auto Mount", uncheck all three options.


                  3. Confirm with "OK".



                Background information



                The small popover in the bottom right that appears when inserting a medium is created by the "Removable Media" panel widget of LXQt. When removing that widget, the popover no longer happens. That is why we only have to care about how to configure that piece of LXQt – what your other installed file managers and desktop environments would start when a medium is inserted is not relevant,as they don't get the chance to do so under LXQt.



                Since Ubuntu 15.04, the user-specific mimetype settings are stored in ~/.config/mimeapps.list (source). Lubuntu / LXQt stores its own changes made with the lxqt-config-file-associations tool also in that file. So you could apply the instructions from above also by directly editing ~/.config/mimeapps.list and adding one line in section "Default Applications":



                [Default Applications]
                inode/mount-point=pcmanfm-qt.desktop;


                The syntax of the mimeapps.list file is explained in this answer, while this answer shows what mimeapps.list file will be chosen if multiple ones exist on a system.






                share|improve this answer















                The system how LXQt decides what to start when a medium is inserted, and why it can show odd behaviors, is well explained here. In short, LXQt starts will start whatever application is configured to handle the inode/mount-point (pseudo-)mimetype. This is influenced both by installing applications (which associate themselves with a mimetype) and desktop environments (which can change defaults), leading to a mess. In this case, I had installed LXQt on top of a normal Ubuntu installation.



                Fortunately, there is a simple way to override the system's default mime-type associations with per-user settings:



                Instructions



                1. Open the LXQt Configuration Center (lxqt-config) and click on "File Associations" there. Or directly start lxqt-config-file-associations.


                2. Navigate to "inode → mount-point", click "Change", and choose "PCManFM-Qt File Manager", the default file manager of LXQt.



                3. Let's also disable the additional popup of PCManFM-Qt when inserting a medium. (Reasons: it does not appear for SD cards which seems to be a bug, it is redundant anyway as there's still the bottom right popover, and the PCManFM-Qt popup is not part of the planned "proper solution" in the future.)



                  1. In PCManFM-Qt, go to "Edit → Preferences → Volume".


                  2. In section "Auto Mount", uncheck all three options.


                  3. Confirm with "OK".



                Background information



                The small popover in the bottom right that appears when inserting a medium is created by the "Removable Media" panel widget of LXQt. When removing that widget, the popover no longer happens. That is why we only have to care about how to configure that piece of LXQt – what your other installed file managers and desktop environments would start when a medium is inserted is not relevant,as they don't get the chance to do so under LXQt.



                Since Ubuntu 15.04, the user-specific mimetype settings are stored in ~/.config/mimeapps.list (source). Lubuntu / LXQt stores its own changes made with the lxqt-config-file-associations tool also in that file. So you could apply the instructions from above also by directly editing ~/.config/mimeapps.list and adding one line in section "Default Applications":



                [Default Applications]
                inode/mount-point=pcmanfm-qt.desktop;


                The syntax of the mimeapps.list file is explained in this answer, while this answer shows what mimeapps.list file will be chosen if multiple ones exist on a system.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited yesterday

























                answered 2 days ago









                taniustanius

                2,6321823




                2,6321823



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132186%2fhow-to-configure-what-starts-when-inserting-a-medium-in-lubuntu-lxqt%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Tamil (spriik) Luke uk diar | Nawigatjuun

                    Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                    Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?