Merge pull request 'refs #1998 run the new browser' (#33) from exec-ogbrowser into main

Reviewed-on: #33
no-tls 5.3.0
Natalia Serrano 2025-05-16 14:53:20 +02:00
commit c33656339f
4 changed files with 18 additions and 4 deletions

View File

@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [5.3.0] - 2025-05-16
### Changed
- Execute 'launch_browser' rather than 'browser'
## [5.2.0] - 2025-05-14
### Added

View File

@ -1,3 +1,9 @@
ogagent (5.3.0-1) stable; urgency=medium
* Execute 'launch_browser' rather than 'browser'
-- OpenGnsys developers <info@opengnsys.es> Wed, 14 May 2025 10:50:15 +0200
ogagent (5.2.0-1) stable; urgency=medium
* Log length of user sessions

View File

@ -1 +1 @@
5.2.0
5.3.0

View File

@ -369,12 +369,14 @@ class ogLiveWorker(ServerWorker):
def cargaPaginaWeb (self, url=None):
if (not url): url = self.urlMenu
os.system ('pkill -9 browser')
os.system ('pkill -f -9 browser')
os.system ('pkill -f -9 OGBrowser')
os.system ('pkill -f -9 QtWebEngineProcess')
p = subprocess.Popen (['/usr/bin/browser', '-qws', url])
p = subprocess.Popen (['/usr/bin/launch_browser', url])
try:
p.wait (2) ## if the process dies before 2 seconds...
logger.error ('Error al ejecutar browser, return code "{}"'.format (p.returncode))
logger.error ('Error al ejecutar OGBrowser, return code "{}"'.format (p.returncode))
return False
except subprocess.TimeoutExpired:
pass