How to append arguments to launch an application with specific parameters from Unity Dash or shortcuts?
up vote
2
down vote
favorite
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
add a comment |
up vote
2
down vote
favorite
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
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
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
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
launcher chromium shortcuts ssl
asked Oct 16 '14 at 9:19
g0lem
197512
197512
add a comment |
add a comment |
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.
Open a terminal and copy the
/usr/share/applications/chromium-browser.desktopfile to your$XDG_DATA_HOMEfolder:
cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications
Edit all
Exec=commands to append the--ssl-version-min=tls1option.
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
Execcommands 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.
$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
add a comment |
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.
add a comment |
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.
Open a terminal and copy the
/usr/share/applications/chromium-browser.desktopfile to your$XDG_DATA_HOMEfolder:
cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications
Edit all
Exec=commands to append the--ssl-version-min=tls1option.
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
Execcommands 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.
$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
add a comment |
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.
Open a terminal and copy the
/usr/share/applications/chromium-browser.desktopfile to your$XDG_DATA_HOMEfolder:
cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications
Edit all
Exec=commands to append the--ssl-version-min=tls1option.
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
Execcommands 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.
$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
add a comment |
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.
Open a terminal and copy the
/usr/share/applications/chromium-browser.desktopfile to your$XDG_DATA_HOMEfolder:
cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications
Edit all
Exec=commands to append the--ssl-version-min=tls1option.
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
Execcommands 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.
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.
Open a terminal and copy the
/usr/share/applications/chromium-browser.desktopfile to your$XDG_DATA_HOMEfolder:
cp /usr/share/applications/chromium-browser.desktop ~/.local/share/applications
Edit all
Exec=commands to append the--ssl-version-min=tls1option.
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
Execcommands 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.
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
add a comment |
$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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 23 at 21:31
answered Nov 23 at 21:25
Evan Carroll
4,619103466
4,619103466
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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