Description: The following macro does not work in Libreoffice Writer: Sub Test_Chrome Dim strURL As String strURL = "https://ask.libreoffice.org" Shell( "/opt/google/chrome/google-chrome " + strURL ) End Sub The result is either a crash in google-chrome or nothing at all. Substituting "google-chrome"for "/opt/google/chrome/google-chrome" does not change the behavior. For example, the following does not work either: Sub Test_Chrome Dim strURL As String strURL = "https://ask.libreoffice.org" Shell( "google-chrome " + strURL ) End Sub However the following works fine: Sub Test_Firefox Dim strURL As String strURL = "https://ask.libreoffice.org" Shell( "firefox " + strURL ) End Sub Steps to Reproduce: 1.Enter the macro shown in the description 2.Compile/run the macro Actual Results: Either a chrome crash or nothing at all Expected Results: Chrome should appear with the https://ask.libreoffice.org page. Reproducible: Always User Profile Reset: Yes OpenGL enabled: Yes Additional Info: Could not execute the test macros in safe mode.
Both "/opt/google/chrome/google-chrome https://ask.libreoffice.org" and "google-chrome https://ask.libreoffice.org" worked as expected when typed into a terminal. "firefox https://ask.libreoffice.org" worked in the same way.
following example works with: Version: 6.1.5.2 (x64) Build ID: 90f8dcf33c87b3705e78202e3df5142b201bd805 CPU threads: 4; OS: Windows 10.0; UI render: default; Locale: de-DE (de_DE); Calc: REM ***** BASIC ***** Sub Main Dim strURL As String strURL = "https://ask.libreoffice.org" shell("C:\Program Files\Mozilla Firefox\firefox.exe", 2, strURL, false) shell("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", 2, strURL, false) End Sub please have a look how the shell() function works: https://help.libreoffice.org/6.1/en-US/text/sbasic/shared/03130500.html I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the issue is still present
I looked at the reference. The macro examples I've given are as shown in the reference - at least insofar as I can tell. The numeric arguments are optional but I added a "1" to both example macros with no change in their behaviors.
if you want to pass params, e.g. your url, you should use the 3 third param for it: > Param > Any string expression that specifies the > command line that want to pass.
Created attachment 149320 [details] Screenshot of Google error
I modified the test macro as follows: Sub Test_Chrome Dim strURL As String strURL = "https://ask.libreoffice.org" Shell( "/opt/google/chrome/google-chrome ",1,"https://ask.libreoffice.org" ) End Sub The URL is the third argument. I've attached the error notification. This is the same behavior as before.
This is working as expected in Version: 6.3.0.4 Build ID: 057fc023c990d676a43019934386b85b21a9ee99 CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US Calc: threaded Sub Test_Chrome Dim strURL As String strURL = "https://ask.libreoffice.org" Shell( "/opt/google/chrome/google-chrome " + strURL ) End Sub ------------------------------------------------------ Also this is working well Sub Test_Chrome Dim strURL As String strURL = "https://ask.libreoffice.org" Shell( "/opt/google/chrome/google-chrome ",1,"https://ask.libreoffice.org" ) End Sub
hello Roy Kimbrell, Have you tried Bogdan's solution from comment 7 ?
Dear Roy Kimbrell, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear Roy Kimbrell, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp