How to append arguments to launch an application with specific parameters from Unity Dash or shortcuts?











up vote
2
down vote

favorite
1












I need to append parameters to Chromium launch in order to disable SSL v3 due to recent vulnerability refered as Poodle:



--ssl-version-min=tls1


How can I add this parameter in order to:




  • Launch Chromium from the default Unity Launcher/Dash

  • Preserve this setting after Chromium update/upgrade

  • Preserve this setting after Ubuntu update/upgrade










share|improve this question


























    up vote
    2
    down vote

    favorite
    1












    I need to append parameters to Chromium launch in order to disable SSL v3 due to recent vulnerability refered as Poodle:



    --ssl-version-min=tls1


    How can I add this parameter in order to:




    • Launch Chromium from the default Unity Launcher/Dash

    • Preserve this setting after Chromium update/upgrade

    • Preserve this setting after Ubuntu update/upgrade










    share|improve this question
























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      I need to append parameters to Chromium launch in order to disable SSL v3 due to recent vulnerability refered as Poodle:



      --ssl-version-min=tls1


      How can I add this parameter in order to:




      • Launch Chromium from the default Unity Launcher/Dash

      • Preserve this setting after Chromium update/upgrade

      • Preserve this setting after Ubuntu update/upgrade










      share|improve this question













      I need to append parameters to Chromium launch in order to disable SSL v3 due to recent vulnerability refered as Poodle:



      --ssl-version-min=tls1


      How can I add this parameter in order to:




      • Launch Chromium from the default Unity Launcher/Dash

      • Preserve this setting after Chromium update/upgrade

      • Preserve this setting after Ubuntu update/upgrade







      launcher chromium shortcuts ssl






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 16 '14 at 9:19









      g0lem

      197512




      197512






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote



          accepted










          You need to add this option to the chromium-browser.desktop file, but not the one located in /usr/share/applications/ as this one will be overwritten by package upgrades or release updates.





          1. Open a terminal and copy the /usr/share/applications/chromium-browser.desktop file to your $XDG_DATA_HOME folder:



            cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications



          2. Edit all Exec= commands to append the --ssl-version-min=tls1 option.



            I've found 4 Exec= commands in chromium-browser.desktop:



            $ grep Exec chromium-browser.desktop
            chromium-browser.desktop:Exec=chromium-browser %U
            chromium-browser.desktop:Exec=chromium-browser
            chromium-browser.desktop:Exec=chromium-browser --incognito
            chromium-browser.desktop:Exec=chromium-browser --temp-profile


            Use the following command to add the ssl option:



            perl -i -pe 's/(Exec=chromium-browser)/$1 --ssl-version-min=tls1/g' ~/.local/share/applications/chromium-browser.desktop


            The Exec commands now look like:



            $ grep Exec chromium-browser.desktop
            chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 %U
            chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1
            chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --incognito
            chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --temp-profile



          Now the .desktop version in your $HOME will always take precedence over the one installed in /usr/share making the change permanent.



          Note that you may have to unlock the icon from the launcher and lock it again to select the right .desktop file tough.



          To check that the new setting works correctly, type the following command in a terminal:



          $ ps -aef | grep ssl-version-min | head -n 1
          sylvain 4405 2375 0 11:36 ? 00:00:05 chromium-browser --enable-pinch --ssl-version-min=tls1


          You should see your chromium-browser process and its new command line arguments.






          share|improve this answer























          • $XDG_DATA_HOME variable is empty. Does it mean that according to the specification the default value for $XDG_DATA_HOME is $HOME/.local/share? Note the OS is Ubuntu 14.04.
            – g0lem
            Oct 18 '14 at 10:08










          • @g0lem exactly,it will defaut to $HOME/.local/share. did you try my proposal?
            – Sylvain Pineau
            Oct 18 '14 at 11:20












          • @Sylvain_Pineau it works like a charm, thanks. Any specific reason to use perl for inserting content in a text file as shown in your example rather than other Linux command in that case?
            – g0lem
            Oct 18 '14 at 16:46












          • @g0lem not really, perl is my favorite swiss-army knife but sed is also possible of course.
            – Sylvain Pineau
            Oct 18 '14 at 16:58


















          up vote
          0
          down vote













          You can easily do this by adding it /etc/chromium-browser/default



          CHROMIUM_FLAGS="--ssl-version-min=tls1"


          But modern versions of chromium should be protected against this with insecure versions of SSL removed.






          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',
            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%2f537717%2fhow-to-append-arguments-to-launch-an-application-with-specific-parameters-from-u%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote



            accepted










            You need to add this option to the chromium-browser.desktop file, but not the one located in /usr/share/applications/ as this one will be overwritten by package upgrades or release updates.





            1. Open a terminal and copy the /usr/share/applications/chromium-browser.desktop file to your $XDG_DATA_HOME folder:



              cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications



            2. Edit all Exec= commands to append the --ssl-version-min=tls1 option.



              I've found 4 Exec= commands in chromium-browser.desktop:



              $ grep Exec chromium-browser.desktop
              chromium-browser.desktop:Exec=chromium-browser %U
              chromium-browser.desktop:Exec=chromium-browser
              chromium-browser.desktop:Exec=chromium-browser --incognito
              chromium-browser.desktop:Exec=chromium-browser --temp-profile


              Use the following command to add the ssl option:



              perl -i -pe 's/(Exec=chromium-browser)/$1 --ssl-version-min=tls1/g' ~/.local/share/applications/chromium-browser.desktop


              The Exec commands now look like:



              $ grep Exec chromium-browser.desktop
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 %U
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --incognito
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --temp-profile



            Now the .desktop version in your $HOME will always take precedence over the one installed in /usr/share making the change permanent.



            Note that you may have to unlock the icon from the launcher and lock it again to select the right .desktop file tough.



            To check that the new setting works correctly, type the following command in a terminal:



            $ ps -aef | grep ssl-version-min | head -n 1
            sylvain 4405 2375 0 11:36 ? 00:00:05 chromium-browser --enable-pinch --ssl-version-min=tls1


            You should see your chromium-browser process and its new command line arguments.






            share|improve this answer























            • $XDG_DATA_HOME variable is empty. Does it mean that according to the specification the default value for $XDG_DATA_HOME is $HOME/.local/share? Note the OS is Ubuntu 14.04.
              – g0lem
              Oct 18 '14 at 10:08










            • @g0lem exactly,it will defaut to $HOME/.local/share. did you try my proposal?
              – Sylvain Pineau
              Oct 18 '14 at 11:20












            • @Sylvain_Pineau it works like a charm, thanks. Any specific reason to use perl for inserting content in a text file as shown in your example rather than other Linux command in that case?
              – g0lem
              Oct 18 '14 at 16:46












            • @g0lem not really, perl is my favorite swiss-army knife but sed is also possible of course.
              – Sylvain Pineau
              Oct 18 '14 at 16:58















            up vote
            3
            down vote



            accepted










            You need to add this option to the chromium-browser.desktop file, but not the one located in /usr/share/applications/ as this one will be overwritten by package upgrades or release updates.





            1. Open a terminal and copy the /usr/share/applications/chromium-browser.desktop file to your $XDG_DATA_HOME folder:



              cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications



            2. Edit all Exec= commands to append the --ssl-version-min=tls1 option.



              I've found 4 Exec= commands in chromium-browser.desktop:



              $ grep Exec chromium-browser.desktop
              chromium-browser.desktop:Exec=chromium-browser %U
              chromium-browser.desktop:Exec=chromium-browser
              chromium-browser.desktop:Exec=chromium-browser --incognito
              chromium-browser.desktop:Exec=chromium-browser --temp-profile


              Use the following command to add the ssl option:



              perl -i -pe 's/(Exec=chromium-browser)/$1 --ssl-version-min=tls1/g' ~/.local/share/applications/chromium-browser.desktop


              The Exec commands now look like:



              $ grep Exec chromium-browser.desktop
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 %U
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --incognito
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --temp-profile



            Now the .desktop version in your $HOME will always take precedence over the one installed in /usr/share making the change permanent.



            Note that you may have to unlock the icon from the launcher and lock it again to select the right .desktop file tough.



            To check that the new setting works correctly, type the following command in a terminal:



            $ ps -aef | grep ssl-version-min | head -n 1
            sylvain 4405 2375 0 11:36 ? 00:00:05 chromium-browser --enable-pinch --ssl-version-min=tls1


            You should see your chromium-browser process and its new command line arguments.






            share|improve this answer























            • $XDG_DATA_HOME variable is empty. Does it mean that according to the specification the default value for $XDG_DATA_HOME is $HOME/.local/share? Note the OS is Ubuntu 14.04.
              – g0lem
              Oct 18 '14 at 10:08










            • @g0lem exactly,it will defaut to $HOME/.local/share. did you try my proposal?
              – Sylvain Pineau
              Oct 18 '14 at 11:20












            • @Sylvain_Pineau it works like a charm, thanks. Any specific reason to use perl for inserting content in a text file as shown in your example rather than other Linux command in that case?
              – g0lem
              Oct 18 '14 at 16:46












            • @g0lem not really, perl is my favorite swiss-army knife but sed is also possible of course.
              – Sylvain Pineau
              Oct 18 '14 at 16:58













            up vote
            3
            down vote



            accepted







            up vote
            3
            down vote



            accepted






            You need to add this option to the chromium-browser.desktop file, but not the one located in /usr/share/applications/ as this one will be overwritten by package upgrades or release updates.





            1. Open a terminal and copy the /usr/share/applications/chromium-browser.desktop file to your $XDG_DATA_HOME folder:



              cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications



            2. Edit all Exec= commands to append the --ssl-version-min=tls1 option.



              I've found 4 Exec= commands in chromium-browser.desktop:



              $ grep Exec chromium-browser.desktop
              chromium-browser.desktop:Exec=chromium-browser %U
              chromium-browser.desktop:Exec=chromium-browser
              chromium-browser.desktop:Exec=chromium-browser --incognito
              chromium-browser.desktop:Exec=chromium-browser --temp-profile


              Use the following command to add the ssl option:



              perl -i -pe 's/(Exec=chromium-browser)/$1 --ssl-version-min=tls1/g' ~/.local/share/applications/chromium-browser.desktop


              The Exec commands now look like:



              $ grep Exec chromium-browser.desktop
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 %U
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --incognito
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --temp-profile



            Now the .desktop version in your $HOME will always take precedence over the one installed in /usr/share making the change permanent.



            Note that you may have to unlock the icon from the launcher and lock it again to select the right .desktop file tough.



            To check that the new setting works correctly, type the following command in a terminal:



            $ ps -aef | grep ssl-version-min | head -n 1
            sylvain 4405 2375 0 11:36 ? 00:00:05 chromium-browser --enable-pinch --ssl-version-min=tls1


            You should see your chromium-browser process and its new command line arguments.






            share|improve this answer














            You need to add this option to the chromium-browser.desktop file, but not the one located in /usr/share/applications/ as this one will be overwritten by package upgrades or release updates.





            1. Open a terminal and copy the /usr/share/applications/chromium-browser.desktop file to your $XDG_DATA_HOME folder:



              cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications



            2. Edit all Exec= commands to append the --ssl-version-min=tls1 option.



              I've found 4 Exec= commands in chromium-browser.desktop:



              $ grep Exec chromium-browser.desktop
              chromium-browser.desktop:Exec=chromium-browser %U
              chromium-browser.desktop:Exec=chromium-browser
              chromium-browser.desktop:Exec=chromium-browser --incognito
              chromium-browser.desktop:Exec=chromium-browser --temp-profile


              Use the following command to add the ssl option:



              perl -i -pe 's/(Exec=chromium-browser)/$1 --ssl-version-min=tls1/g' ~/.local/share/applications/chromium-browser.desktop


              The Exec commands now look like:



              $ grep Exec chromium-browser.desktop
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 %U
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --incognito
              chromium-browser.desktop:Exec=chromium-browser --ssl-version-min=tls1 --temp-profile



            Now the .desktop version in your $HOME will always take precedence over the one installed in /usr/share making the change permanent.



            Note that you may have to unlock the icon from the launcher and lock it again to select the right .desktop file tough.



            To check that the new setting works correctly, type the following command in a terminal:



            $ ps -aef | grep ssl-version-min | head -n 1
            sylvain 4405 2375 0 11:36 ? 00:00:05 chromium-browser --enable-pinch --ssl-version-min=tls1


            You should see your chromium-browser process and its new command line arguments.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 16 '14 at 18:47

























            answered Oct 16 '14 at 9:55









            Sylvain Pineau

            48.2k16104149




            48.2k16104149












            • $XDG_DATA_HOME variable is empty. Does it mean that according to the specification the default value for $XDG_DATA_HOME is $HOME/.local/share? Note the OS is Ubuntu 14.04.
              – g0lem
              Oct 18 '14 at 10:08










            • @g0lem exactly,it will defaut to $HOME/.local/share. did you try my proposal?
              – Sylvain Pineau
              Oct 18 '14 at 11:20












            • @Sylvain_Pineau it works like a charm, thanks. Any specific reason to use perl for inserting content in a text file as shown in your example rather than other Linux command in that case?
              – g0lem
              Oct 18 '14 at 16:46












            • @g0lem not really, perl is my favorite swiss-army knife but sed is also possible of course.
              – Sylvain Pineau
              Oct 18 '14 at 16:58


















            • $XDG_DATA_HOME variable is empty. Does it mean that according to the specification the default value for $XDG_DATA_HOME is $HOME/.local/share? Note the OS is Ubuntu 14.04.
              – g0lem
              Oct 18 '14 at 10:08










            • @g0lem exactly,it will defaut to $HOME/.local/share. did you try my proposal?
              – Sylvain Pineau
              Oct 18 '14 at 11:20












            • @Sylvain_Pineau it works like a charm, thanks. Any specific reason to use perl for inserting content in a text file as shown in your example rather than other Linux command in that case?
              – g0lem
              Oct 18 '14 at 16:46












            • @g0lem not really, perl is my favorite swiss-army knife but sed is also possible of course.
              – Sylvain Pineau
              Oct 18 '14 at 16:58
















            $XDG_DATA_HOME variable is empty. Does it mean that according to the specification the default value for $XDG_DATA_HOME is $HOME/.local/share? Note the OS is Ubuntu 14.04.
            – g0lem
            Oct 18 '14 at 10:08




            $XDG_DATA_HOME variable is empty. Does it mean that according to the specification the default value for $XDG_DATA_HOME is $HOME/.local/share? Note the OS is Ubuntu 14.04.
            – g0lem
            Oct 18 '14 at 10:08












            @g0lem exactly,it will defaut to $HOME/.local/share. did you try my proposal?
            – Sylvain Pineau
            Oct 18 '14 at 11:20






            @g0lem exactly,it will defaut to $HOME/.local/share. did you try my proposal?
            – Sylvain Pineau
            Oct 18 '14 at 11:20














            @Sylvain_Pineau it works like a charm, thanks. Any specific reason to use perl for inserting content in a text file as shown in your example rather than other Linux command in that case?
            – g0lem
            Oct 18 '14 at 16:46






            @Sylvain_Pineau it works like a charm, thanks. Any specific reason to use perl for inserting content in a text file as shown in your example rather than other Linux command in that case?
            – g0lem
            Oct 18 '14 at 16:46














            @g0lem not really, perl is my favorite swiss-army knife but sed is also possible of course.
            – Sylvain Pineau
            Oct 18 '14 at 16:58




            @g0lem not really, perl is my favorite swiss-army knife but sed is also possible of course.
            – Sylvain Pineau
            Oct 18 '14 at 16:58












            up vote
            0
            down vote













            You can easily do this by adding it /etc/chromium-browser/default



            CHROMIUM_FLAGS="--ssl-version-min=tls1"


            But modern versions of chromium should be protected against this with insecure versions of SSL removed.






            share|improve this answer



























              up vote
              0
              down vote













              You can easily do this by adding it /etc/chromium-browser/default



              CHROMIUM_FLAGS="--ssl-version-min=tls1"


              But modern versions of chromium should be protected against this with insecure versions of SSL removed.






              share|improve this answer

























                up vote
                0
                down vote










                up vote
                0
                down vote









                You can easily do this by adding it /etc/chromium-browser/default



                CHROMIUM_FLAGS="--ssl-version-min=tls1"


                But modern versions of chromium should be protected against this with insecure versions of SSL removed.






                share|improve this answer














                You can easily do this by adding it /etc/chromium-browser/default



                CHROMIUM_FLAGS="--ssl-version-min=tls1"


                But modern versions of chromium should be protected against this with insecure versions of SSL removed.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 23 at 21:31

























                answered Nov 23 at 21:25









                Evan Carroll

                4,619103466




                4,619103466






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f537717%2fhow-to-append-arguments-to-launch-an-application-with-specific-parameters-from-u%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

                    Mouse cursor on multiple screens with different PPI

                    Agildo Ribeiro

                    Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”