How to get the default version of an application in unix
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
LetâÂÂs say I have two versions of Firefox installed. What is the way to get the default version of firefox printed? I am running the script in python. Is there way to get the output into python?
linux python version defaults
add a comment |Â
up vote
0
down vote
favorite
LetâÂÂs say I have two versions of Firefox installed. What is the way to get the default version of firefox printed? I am running the script in python. Is there way to get the output into python?
linux python version defaults
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
LetâÂÂs say I have two versions of Firefox installed. What is the way to get the default version of firefox printed? I am running the script in python. Is there way to get the output into python?
linux python version defaults
LetâÂÂs say I have two versions of Firefox installed. What is the way to get the default version of firefox printed? I am running the script in python. Is there way to get the output into python?
linux python version defaults
edited Nov 27 '17 at 11:08
Jeff Schaller
32.1k849109
32.1k849109
asked Nov 27 '17 at 10:59
Anoop Vk
31
31
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Assuming that the "default version" is whatever is executed when you enter firefox
in a terminal:
version=subprocess.check_output(['firefox','--version'])
This could be improved by indicating that python will runfirefox
with (some) $PATH, which dictates which Firefox will start.
â Jeff Schaller
Nov 27 '17 at 12:08
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Assuming that the "default version" is whatever is executed when you enter firefox
in a terminal:
version=subprocess.check_output(['firefox','--version'])
This could be improved by indicating that python will runfirefox
with (some) $PATH, which dictates which Firefox will start.
â Jeff Schaller
Nov 27 '17 at 12:08
add a comment |Â
up vote
0
down vote
accepted
Assuming that the "default version" is whatever is executed when you enter firefox
in a terminal:
version=subprocess.check_output(['firefox','--version'])
This could be improved by indicating that python will runfirefox
with (some) $PATH, which dictates which Firefox will start.
â Jeff Schaller
Nov 27 '17 at 12:08
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Assuming that the "default version" is whatever is executed when you enter firefox
in a terminal:
version=subprocess.check_output(['firefox','--version'])
Assuming that the "default version" is whatever is executed when you enter firefox
in a terminal:
version=subprocess.check_output(['firefox','--version'])
edited Nov 27 '17 at 12:12
answered Nov 27 '17 at 11:43
xenoid
1,7151620
1,7151620
This could be improved by indicating that python will runfirefox
with (some) $PATH, which dictates which Firefox will start.
â Jeff Schaller
Nov 27 '17 at 12:08
add a comment |Â
This could be improved by indicating that python will runfirefox
with (some) $PATH, which dictates which Firefox will start.
â Jeff Schaller
Nov 27 '17 at 12:08
This could be improved by indicating that python will run
firefox
with (some) $PATH, which dictates which Firefox will start.â Jeff Schaller
Nov 27 '17 at 12:08
This could be improved by indicating that python will run
firefox
with (some) $PATH, which dictates which Firefox will start.â Jeff Schaller
Nov 27 '17 at 12:08
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407260%2fhow-to-get-the-default-version-of-an-application-in-unix%23new-answer', 'question_page');
);
Post as a guest
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
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
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