Ubuntu force default program open?

Multi tool use
Multi tool use











up vote
0
down vote

favorite












In my ubuntu, I have Firefox browser and VS Code installed for text editing (it's like notepad++ on windows). Sometimes I have files ending with .html. If I double click them, VS Code opens. I tried to set default program by right clicking on file -> properties -> etc... but it's effective only until I reboot pc. How can I force ubuntu to remember default program?










share|improve this question


























    up vote
    0
    down vote

    favorite












    In my ubuntu, I have Firefox browser and VS Code installed for text editing (it's like notepad++ on windows). Sometimes I have files ending with .html. If I double click them, VS Code opens. I tried to set default program by right clicking on file -> properties -> etc... but it's effective only until I reboot pc. How can I force ubuntu to remember default program?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      In my ubuntu, I have Firefox browser and VS Code installed for text editing (it's like notepad++ on windows). Sometimes I have files ending with .html. If I double click them, VS Code opens. I tried to set default program by right clicking on file -> properties -> etc... but it's effective only until I reboot pc. How can I force ubuntu to remember default program?










      share|improve this question













      In my ubuntu, I have Firefox browser and VS Code installed for text editing (it's like notepad++ on windows). Sometimes I have files ending with .html. If I double click them, VS Code opens. I tried to set default program by right clicking on file -> properties -> etc... but it's effective only until I reboot pc. How can I force ubuntu to remember default program?







      firefox file-association ubuntu-16.04 vscode






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 at 17:35









      Ignas

      61




      61



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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',
          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%2fsuperuser.com%2fquestions%2f1377046%2fubuntu-force-default-program-open%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1377046%2fubuntu-force-default-program-open%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







          vby0VKUbP khXSv0RI1iFxndrog6 Su7qq2D65iVpgbeRqI fPxDjNJ6ES2hRZ
          g7I2Ls69aKARVyP2OGnRT599M 9o,ai3CshfEfJr0 kJ,0 mE48 yfK1MRgsOPx,XzfVlKw7Zrfje 1z,nN,DBnTT0G,2j,86r JTMxaW9

          Popular posts from this blog

          Monte Fuji

          Running commands remotely through an RDP connection

          Mangá