VLC doesn't open when double-clicking file on Nautilus












2















When double-clicking any video (I tried different formats) VLC just open and close again after around 14 seconds:



VLC not running



It works fine if I:




  • Open VLC from terminal or any other way and then open the same file.


  • killall nautilus, run nautilus and double-clic the file (that surprise me).

  • Use Nemo, Double-commander or other file manager and double-clic the file.


Last think make me think is a nautilus bug, but doesn't happened with any other program.



I tried:




  • Bizarre things like tring to fetch stdout/stderr with strace -p`pgrep -l '^vlc$' | col1 | head -1` -s9999 -e write with watch. I couldn't do it.

  • On Exec parameter of /usr/share/applications/vlc.desktop I have /usr/bin/vlc --started-from-file %U. without luck I tried changing to:


    • /usr/bin/vlc

    • xterm -e "vlc"


    • gnome-terminal -e "vlc". In this last case before previous behavior I get this window: enter image description here




File format is correctly associated with VLC. If I associate it with other program everything goes fine.



I believe this is a different situation than this one. I already read this, this and this.



Maybe a related useful question could be: How exactly Nautilus run associated program of double-clicked file?



Update 2018-02-12



Now with VLC 2.2.2-0-g6259d80 and GNOME nautilus 3.14.3 I don't have this problem anymore. So probably it was a bug on nautilus (since is the same version of VLC).










share|improve this question





























    2















    When double-clicking any video (I tried different formats) VLC just open and close again after around 14 seconds:



    VLC not running



    It works fine if I:




    • Open VLC from terminal or any other way and then open the same file.


    • killall nautilus, run nautilus and double-clic the file (that surprise me).

    • Use Nemo, Double-commander or other file manager and double-clic the file.


    Last think make me think is a nautilus bug, but doesn't happened with any other program.



    I tried:




    • Bizarre things like tring to fetch stdout/stderr with strace -p`pgrep -l '^vlc$' | col1 | head -1` -s9999 -e write with watch. I couldn't do it.

    • On Exec parameter of /usr/share/applications/vlc.desktop I have /usr/bin/vlc --started-from-file %U. without luck I tried changing to:


      • /usr/bin/vlc

      • xterm -e "vlc"


      • gnome-terminal -e "vlc". In this last case before previous behavior I get this window: enter image description here




    File format is correctly associated with VLC. If I associate it with other program everything goes fine.



    I believe this is a different situation than this one. I already read this, this and this.



    Maybe a related useful question could be: How exactly Nautilus run associated program of double-clicked file?



    Update 2018-02-12



    Now with VLC 2.2.2-0-g6259d80 and GNOME nautilus 3.14.3 I don't have this problem anymore. So probably it was a bug on nautilus (since is the same version of VLC).










    share|improve this question



























      2












      2








      2








      When double-clicking any video (I tried different formats) VLC just open and close again after around 14 seconds:



      VLC not running



      It works fine if I:




      • Open VLC from terminal or any other way and then open the same file.


      • killall nautilus, run nautilus and double-clic the file (that surprise me).

      • Use Nemo, Double-commander or other file manager and double-clic the file.


      Last think make me think is a nautilus bug, but doesn't happened with any other program.



      I tried:




      • Bizarre things like tring to fetch stdout/stderr with strace -p`pgrep -l '^vlc$' | col1 | head -1` -s9999 -e write with watch. I couldn't do it.

      • On Exec parameter of /usr/share/applications/vlc.desktop I have /usr/bin/vlc --started-from-file %U. without luck I tried changing to:


        • /usr/bin/vlc

        • xterm -e "vlc"


        • gnome-terminal -e "vlc". In this last case before previous behavior I get this window: enter image description here




      File format is correctly associated with VLC. If I associate it with other program everything goes fine.



      I believe this is a different situation than this one. I already read this, this and this.



      Maybe a related useful question could be: How exactly Nautilus run associated program of double-clicked file?



      Update 2018-02-12



      Now with VLC 2.2.2-0-g6259d80 and GNOME nautilus 3.14.3 I don't have this problem anymore. So probably it was a bug on nautilus (since is the same version of VLC).










      share|improve this question
















      When double-clicking any video (I tried different formats) VLC just open and close again after around 14 seconds:



      VLC not running



      It works fine if I:




      • Open VLC from terminal or any other way and then open the same file.


      • killall nautilus, run nautilus and double-clic the file (that surprise me).

      • Use Nemo, Double-commander or other file manager and double-clic the file.


      Last think make me think is a nautilus bug, but doesn't happened with any other program.



      I tried:




      • Bizarre things like tring to fetch stdout/stderr with strace -p`pgrep -l '^vlc$' | col1 | head -1` -s9999 -e write with watch. I couldn't do it.

      • On Exec parameter of /usr/share/applications/vlc.desktop I have /usr/bin/vlc --started-from-file %U. without luck I tried changing to:


        • /usr/bin/vlc

        • xterm -e "vlc"


        • gnome-terminal -e "vlc". In this last case before previous behavior I get this window: enter image description here




      File format is correctly associated with VLC. If I associate it with other program everything goes fine.



      I believe this is a different situation than this one. I already read this, this and this.



      Maybe a related useful question could be: How exactly Nautilus run associated program of double-clicked file?



      Update 2018-02-12



      Now with VLC 2.2.2-0-g6259d80 and GNOME nautilus 3.14.3 I don't have this problem anymore. So probably it was a bug on nautilus (since is the same version of VLC).







      16.04 nautilus gui vlc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 12 '18 at 4:34







      Pablo Bianchi

















      asked Apr 8 '17 at 16:52









      Pablo BianchiPablo Bianchi

      2,4751532




      2,4751532






















          3 Answers
          3






          active

          oldest

          votes


















          1














          Open the terminal:



          sudo nano /usr/share/applications/vlc.desktop


          After Exec= add:



          /usr/bin/vlc --started-from-file %U


          If this doesn't work, try just with /usr/bin/vlc. Last resort you could use the following line:



          xterm -e "vlc"


          But I assume you want to avoid terminal dependency.






          share|improve this answer


























          • Doesn't work. file already have "--star..". Both other options didn't work. gnome-open filename from terminal also works fine. Maybe is more a nautilus problem.

            – Pablo Bianchi
            Apr 8 '17 at 17:35






          • 1





            Exec=xterm -e "vlc" or Exec=gnome-terminal -e "vlc"in /usr/share/applications/vlc.desktop should work regardless. But yeah, seems to be a bug

            – user633551
            Apr 8 '17 at 17:47



















          1














          I had a very similar issue - doubleclicking a file did not seem to do anything but when running VLC from command line I was able to play videos. The VLC GUI was missing though.



          Because Pablo Bianchi suggested doing killall nautilus, I ran nautilus from command line. That showed me that when I doubleclicked a video, VLC displayed errors I could not see without the command line. I then googled them and stumbled upon this thread.



          For me, installing QT4 fixed the problem. Apparently it was an issue with the VLC GUI, not Nautilus.






          share|improve this answer


























          • Please add the details of how to install Qt 4.

            – Chai T. Rex
            Feb 11 '18 at 1:41











          • I'm on Antergos, so I just did pacman -S qt4. Pretty sure on Ubuntu you can also apt install qt4. Apparently qt5 was installed but VLC is not compatible.

            – Konzertheld
            Feb 11 '18 at 12:57













          • There's no qt4 package.

            – Chai T. Rex
            Feb 12 '18 at 4:23











          • I updated the question. I don't have any qt4-* package installed.

            – Pablo Bianchi
            Feb 12 '18 at 4:35











          • @ChaiT.Rex There are several qt4 packages in Ubuntu. packages.ubuntu.com/…

            – Konzertheld
            Feb 12 '18 at 15:49



















          0














          Had same problem. This worked for me:




          1. Open VLC > Tools > Preferences > "Show all" settings

          2. Scroll to Interface> Main Interface

          3. Uncheck qt4 interface

          4. Save


          screenshot



          All worked OK then.






          share|improve this answer










          New contributor




          bob hope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















            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%2f902605%2fvlc-doesnt-open-when-double-clicking-file-on-nautilus%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Open the terminal:



            sudo nano /usr/share/applications/vlc.desktop


            After Exec= add:



            /usr/bin/vlc --started-from-file %U


            If this doesn't work, try just with /usr/bin/vlc. Last resort you could use the following line:



            xterm -e "vlc"


            But I assume you want to avoid terminal dependency.






            share|improve this answer


























            • Doesn't work. file already have "--star..". Both other options didn't work. gnome-open filename from terminal also works fine. Maybe is more a nautilus problem.

              – Pablo Bianchi
              Apr 8 '17 at 17:35






            • 1





              Exec=xterm -e "vlc" or Exec=gnome-terminal -e "vlc"in /usr/share/applications/vlc.desktop should work regardless. But yeah, seems to be a bug

              – user633551
              Apr 8 '17 at 17:47
















            1














            Open the terminal:



            sudo nano /usr/share/applications/vlc.desktop


            After Exec= add:



            /usr/bin/vlc --started-from-file %U


            If this doesn't work, try just with /usr/bin/vlc. Last resort you could use the following line:



            xterm -e "vlc"


            But I assume you want to avoid terminal dependency.






            share|improve this answer


























            • Doesn't work. file already have "--star..". Both other options didn't work. gnome-open filename from terminal also works fine. Maybe is more a nautilus problem.

              – Pablo Bianchi
              Apr 8 '17 at 17:35






            • 1





              Exec=xterm -e "vlc" or Exec=gnome-terminal -e "vlc"in /usr/share/applications/vlc.desktop should work regardless. But yeah, seems to be a bug

              – user633551
              Apr 8 '17 at 17:47














            1












            1








            1







            Open the terminal:



            sudo nano /usr/share/applications/vlc.desktop


            After Exec= add:



            /usr/bin/vlc --started-from-file %U


            If this doesn't work, try just with /usr/bin/vlc. Last resort you could use the following line:



            xterm -e "vlc"


            But I assume you want to avoid terminal dependency.






            share|improve this answer















            Open the terminal:



            sudo nano /usr/share/applications/vlc.desktop


            After Exec= add:



            /usr/bin/vlc --started-from-file %U


            If this doesn't work, try just with /usr/bin/vlc. Last resort you could use the following line:



            xterm -e "vlc"


            But I assume you want to avoid terminal dependency.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 8 '17 at 17:50

























            answered Apr 8 '17 at 17:23









            user633551user633551

            30129




            30129













            • Doesn't work. file already have "--star..". Both other options didn't work. gnome-open filename from terminal also works fine. Maybe is more a nautilus problem.

              – Pablo Bianchi
              Apr 8 '17 at 17:35






            • 1





              Exec=xterm -e "vlc" or Exec=gnome-terminal -e "vlc"in /usr/share/applications/vlc.desktop should work regardless. But yeah, seems to be a bug

              – user633551
              Apr 8 '17 at 17:47



















            • Doesn't work. file already have "--star..". Both other options didn't work. gnome-open filename from terminal also works fine. Maybe is more a nautilus problem.

              – Pablo Bianchi
              Apr 8 '17 at 17:35






            • 1





              Exec=xterm -e "vlc" or Exec=gnome-terminal -e "vlc"in /usr/share/applications/vlc.desktop should work regardless. But yeah, seems to be a bug

              – user633551
              Apr 8 '17 at 17:47

















            Doesn't work. file already have "--star..". Both other options didn't work. gnome-open filename from terminal also works fine. Maybe is more a nautilus problem.

            – Pablo Bianchi
            Apr 8 '17 at 17:35





            Doesn't work. file already have "--star..". Both other options didn't work. gnome-open filename from terminal also works fine. Maybe is more a nautilus problem.

            – Pablo Bianchi
            Apr 8 '17 at 17:35




            1




            1





            Exec=xterm -e "vlc" or Exec=gnome-terminal -e "vlc"in /usr/share/applications/vlc.desktop should work regardless. But yeah, seems to be a bug

            – user633551
            Apr 8 '17 at 17:47





            Exec=xterm -e "vlc" or Exec=gnome-terminal -e "vlc"in /usr/share/applications/vlc.desktop should work regardless. But yeah, seems to be a bug

            – user633551
            Apr 8 '17 at 17:47













            1














            I had a very similar issue - doubleclicking a file did not seem to do anything but when running VLC from command line I was able to play videos. The VLC GUI was missing though.



            Because Pablo Bianchi suggested doing killall nautilus, I ran nautilus from command line. That showed me that when I doubleclicked a video, VLC displayed errors I could not see without the command line. I then googled them and stumbled upon this thread.



            For me, installing QT4 fixed the problem. Apparently it was an issue with the VLC GUI, not Nautilus.






            share|improve this answer


























            • Please add the details of how to install Qt 4.

              – Chai T. Rex
              Feb 11 '18 at 1:41











            • I'm on Antergos, so I just did pacman -S qt4. Pretty sure on Ubuntu you can also apt install qt4. Apparently qt5 was installed but VLC is not compatible.

              – Konzertheld
              Feb 11 '18 at 12:57













            • There's no qt4 package.

              – Chai T. Rex
              Feb 12 '18 at 4:23











            • I updated the question. I don't have any qt4-* package installed.

              – Pablo Bianchi
              Feb 12 '18 at 4:35











            • @ChaiT.Rex There are several qt4 packages in Ubuntu. packages.ubuntu.com/…

              – Konzertheld
              Feb 12 '18 at 15:49
















            1














            I had a very similar issue - doubleclicking a file did not seem to do anything but when running VLC from command line I was able to play videos. The VLC GUI was missing though.



            Because Pablo Bianchi suggested doing killall nautilus, I ran nautilus from command line. That showed me that when I doubleclicked a video, VLC displayed errors I could not see without the command line. I then googled them and stumbled upon this thread.



            For me, installing QT4 fixed the problem. Apparently it was an issue with the VLC GUI, not Nautilus.






            share|improve this answer


























            • Please add the details of how to install Qt 4.

              – Chai T. Rex
              Feb 11 '18 at 1:41











            • I'm on Antergos, so I just did pacman -S qt4. Pretty sure on Ubuntu you can also apt install qt4. Apparently qt5 was installed but VLC is not compatible.

              – Konzertheld
              Feb 11 '18 at 12:57













            • There's no qt4 package.

              – Chai T. Rex
              Feb 12 '18 at 4:23











            • I updated the question. I don't have any qt4-* package installed.

              – Pablo Bianchi
              Feb 12 '18 at 4:35











            • @ChaiT.Rex There are several qt4 packages in Ubuntu. packages.ubuntu.com/…

              – Konzertheld
              Feb 12 '18 at 15:49














            1












            1








            1







            I had a very similar issue - doubleclicking a file did not seem to do anything but when running VLC from command line I was able to play videos. The VLC GUI was missing though.



            Because Pablo Bianchi suggested doing killall nautilus, I ran nautilus from command line. That showed me that when I doubleclicked a video, VLC displayed errors I could not see without the command line. I then googled them and stumbled upon this thread.



            For me, installing QT4 fixed the problem. Apparently it was an issue with the VLC GUI, not Nautilus.






            share|improve this answer















            I had a very similar issue - doubleclicking a file did not seem to do anything but when running VLC from command line I was able to play videos. The VLC GUI was missing though.



            Because Pablo Bianchi suggested doing killall nautilus, I ran nautilus from command line. That showed me that when I doubleclicked a video, VLC displayed errors I could not see without the command line. I then googled them and stumbled upon this thread.



            For me, installing QT4 fixed the problem. Apparently it was an issue with the VLC GUI, not Nautilus.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 2 days ago









            Pablo Bianchi

            2,4751532




            2,4751532










            answered Feb 10 '18 at 22:41









            KonzertheldKonzertheld

            112




            112













            • Please add the details of how to install Qt 4.

              – Chai T. Rex
              Feb 11 '18 at 1:41











            • I'm on Antergos, so I just did pacman -S qt4. Pretty sure on Ubuntu you can also apt install qt4. Apparently qt5 was installed but VLC is not compatible.

              – Konzertheld
              Feb 11 '18 at 12:57













            • There's no qt4 package.

              – Chai T. Rex
              Feb 12 '18 at 4:23











            • I updated the question. I don't have any qt4-* package installed.

              – Pablo Bianchi
              Feb 12 '18 at 4:35











            • @ChaiT.Rex There are several qt4 packages in Ubuntu. packages.ubuntu.com/…

              – Konzertheld
              Feb 12 '18 at 15:49



















            • Please add the details of how to install Qt 4.

              – Chai T. Rex
              Feb 11 '18 at 1:41











            • I'm on Antergos, so I just did pacman -S qt4. Pretty sure on Ubuntu you can also apt install qt4. Apparently qt5 was installed but VLC is not compatible.

              – Konzertheld
              Feb 11 '18 at 12:57













            • There's no qt4 package.

              – Chai T. Rex
              Feb 12 '18 at 4:23











            • I updated the question. I don't have any qt4-* package installed.

              – Pablo Bianchi
              Feb 12 '18 at 4:35











            • @ChaiT.Rex There are several qt4 packages in Ubuntu. packages.ubuntu.com/…

              – Konzertheld
              Feb 12 '18 at 15:49

















            Please add the details of how to install Qt 4.

            – Chai T. Rex
            Feb 11 '18 at 1:41





            Please add the details of how to install Qt 4.

            – Chai T. Rex
            Feb 11 '18 at 1:41













            I'm on Antergos, so I just did pacman -S qt4. Pretty sure on Ubuntu you can also apt install qt4. Apparently qt5 was installed but VLC is not compatible.

            – Konzertheld
            Feb 11 '18 at 12:57







            I'm on Antergos, so I just did pacman -S qt4. Pretty sure on Ubuntu you can also apt install qt4. Apparently qt5 was installed but VLC is not compatible.

            – Konzertheld
            Feb 11 '18 at 12:57















            There's no qt4 package.

            – Chai T. Rex
            Feb 12 '18 at 4:23





            There's no qt4 package.

            – Chai T. Rex
            Feb 12 '18 at 4:23













            I updated the question. I don't have any qt4-* package installed.

            – Pablo Bianchi
            Feb 12 '18 at 4:35





            I updated the question. I don't have any qt4-* package installed.

            – Pablo Bianchi
            Feb 12 '18 at 4:35













            @ChaiT.Rex There are several qt4 packages in Ubuntu. packages.ubuntu.com/…

            – Konzertheld
            Feb 12 '18 at 15:49





            @ChaiT.Rex There are several qt4 packages in Ubuntu. packages.ubuntu.com/…

            – Konzertheld
            Feb 12 '18 at 15:49











            0














            Had same problem. This worked for me:




            1. Open VLC > Tools > Preferences > "Show all" settings

            2. Scroll to Interface> Main Interface

            3. Uncheck qt4 interface

            4. Save


            screenshot



            All worked OK then.






            share|improve this answer










            New contributor




            bob hope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              Had same problem. This worked for me:




              1. Open VLC > Tools > Preferences > "Show all" settings

              2. Scroll to Interface> Main Interface

              3. Uncheck qt4 interface

              4. Save


              screenshot



              All worked OK then.






              share|improve this answer










              New contributor




              bob hope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                Had same problem. This worked for me:




                1. Open VLC > Tools > Preferences > "Show all" settings

                2. Scroll to Interface> Main Interface

                3. Uncheck qt4 interface

                4. Save


                screenshot



                All worked OK then.






                share|improve this answer










                New contributor




                bob hope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                Had same problem. This worked for me:




                1. Open VLC > Tools > Preferences > "Show all" settings

                2. Scroll to Interface> Main Interface

                3. Uncheck qt4 interface

                4. Save


                screenshot



                All worked OK then.







                share|improve this answer










                New contributor




                bob hope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer








                edited 2 days ago









                Pablo Bianchi

                2,4751532




                2,4751532






                New contributor




                bob hope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered Jan 23 at 18:16









                bob hopebob hope

                11




                11




                New contributor




                bob hope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                bob hope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                bob hope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                    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%2f902605%2fvlc-doesnt-open-when-double-clicking-file-on-nautilus%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

                    數位音樂下載

                    格利澤436b

                    When can things happen in Etherscan, such as the picture below?