Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: [GDC 3.20.25] Automatically close GDC on exit ?  (Read 6722 times)
Hamid L.
Posts: 3


« on: October 27, 2022, 10:17:10 am »

Hello,

When the user opens a .gdc shortcut, it automatically opens the GDC and executes the shortcut command to open an application.
When the user exit the application, is it possible to automatically close the GDC (at least if there is no other active connection) ?

BR
Christine R.
Four Js
Posts: 407


« Reply #1 on: October 27, 2022, 10:43:11 am »

Hello,

You have the --close or -X option for that.
See https://4js.com/online_documentation/fjs-gdc-3.20.26-manual-html/#gdc-topics/c_gdc_cmd_line_options.html

Best regards,

Christine HEIM-REBIERE
FourJs Support Team
Hamid L.
Posts: 3


« Reply #2 on: October 27, 2022, 11:13:07 am »

Ok, thank you for this option.

But is it possible to set an option to the GDC when it's directly launched with a direct shortcut (.gdc file)?
Our customers does not use the Windows GDC shortcut (.lnk), only direct shortcut (.gdc).

BR
Reuben B.
Four Js
Posts: 1049


« Reply #3 on: October 28, 2022, 07:05:56 am »

Unfortunately there are a number of command line options that can only be set via command line options and are not able to be to set inside a .gbc file.  A task did exist in the past to look at that but was unfortunately not implemented, see. https://4js.com/support/issue/?id=GDC-2725.  There are some valid reasons for not implementing, for instance it would not be desirable to allow -A 0 , --listen ANY.  On the other hand there are some such as the -X you are after, -p 6401, --language, -c , command line arguments where it would be nice to specify inside the .gdc.  You also face the problem of what if two shortcuts have two conflicting argument, for instance if one specified -X and one did not ...

For now, you face the same problem as someone who wants to launch any other application Excel, Word, Chrome etc with specific command line arguments for Excel, Word, Chrome etc.  It is possible but you either have to get into the shortcut/registry settings so that gdc.exe -X is launched instead of gdc.exe, or you associate a .gdc file with a .bat file that in turn launches gdc.exe -X -%1 etc i.e it becomes a Windows Shortcut problem

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Hamid L.
Posts: 3


« Reply #4 on: October 28, 2022, 09:13:06 am »

Ok, that confirms my thoughts. Thank you for the explanations
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines