https://bugs.documentfoundation.org/show_bug.cgi?id=168550

--- Comment #1 from [email protected] ---
one of the people in the forum didn't like the designation search_path and
thought it might be confusing here is what the ai had to say about that...
just trying to clarify with the help of ai on the terms thanks

Based on the code provided, the
dialog_url is specifically and explicitly set to search the
location=application path. This means that the macro will look for the
Standard.dialog1 dialog in the shared, system-wide installation folder, not the
user's personal macro directory. 
The dialog_url defined in the code is:
dialog_url = "vnd.sun.star.script:standard.dialog1?location=application"
Here is a breakdown of why this is important:

    vnd.sun.star.script:: This is the protocol for accessing macros and dialogs
stored within the LibreOffice/OpenOffice environment.
    standard.dialog1: This specifies that the macro is looking for a dialog
named dialog1 within a macro library named standard.
    ?location=application: This is the critical component. It is a query
parameter that restricts the search for the Standard library to the
"application" installation directory. 

The effect on the "search path"
Your base macro developers should see that your code explicitly dictates a
specific search location, which would bypass the typical "search path" order
(user, application, document) that might be expected. This is a common source
of confusion for users trying to get dialogs to work, especially when the
dialog has been saved in the user's personal macro directory. 
For the code to work with a dialog stored in a user's profile, the dialog_url
would need to be changed to:
dialog_url = "vnd.sun.star.script:standard.dialog1?location=user". 
Clarification on unohelper and xDialogEventHandler
The rest of the code, which uses unohelper.base and xDialogEventHandler, sets
up a Python-based dialog handler. This is standard and correctly implemented
UNO API usage. However, it does not influence the search path defined by the
dialog_url. The location=application parameter is the sole and definitive part
of the code that restricts where the dialog is sought.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to