Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Support AppGetChromeVersionString and AppGetProductVersionString on Linux #511

Conversation

marcelgerber
Copy link
Contributor

@marcelgerber marcelgerber commented Apr 2, 2015

AppGetProductVersionString uses a newly created version_linux.h file including only a APP_VERSION constant as there seems to be no other way to retrieve version number on Linux.
The functions work, but unfortunately the user agent string (navigator.userAgent) doesn't yet contain these strings as there's a Linux-only issue that was fixed in CEF 1650 (https://bitbucket.org/chromiumembedded/cef/issues/1149/cefsettingsproduct_version-has-no-impact)

…inux.

AppGetProductVersionString uses a newly created version_linux.h file including only a APP_VERSION constant as there seems to be no other way to retrieve version number on Linux.
The functions work, but unfortunately the user agent string (navigator.userAgent) doesn't yet contain these strings as there seems to be something wrong with the way settings.product_version is set in cefclient.cpp
@ficristo
Copy link
Collaborator

It seems to me that the only purpose of AppGetChromeVersionString and AppGetProductVersionString is to change the User Agent string. So, if it doesn't work, I don't think this PR is worth on top of linux-1547 branch.
On master is a different story, keep in mind I'm planning to move these methods in a new file.

@ficristo
Copy link
Collaborator

ficristo commented Oct 6, 2016

Now these methods are in appshell_helpers.h and appshell_helpers_gtk.cpp.
@marcelgerber could you rebase this against master or open a new one?

@ficristo
Copy link
Collaborator

With #591 now this is on master. As I said I don't believe this is worth on linux-1547 branch so closing.
Thank you a lot for this, was very helpful.

@ficristo ficristo closed this Oct 28, 2016
@marcelgerber marcelgerber deleted the linux-chrome-version-string branch January 21, 2017 09:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants