Bug 131656 - UNO action to open user profile directory
Summary: UNO action to open user profile directory
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2020-03-29 07:53 UTC by larson
Modified: 2020-03-31 12:25 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description larson 2020-03-29 07:53:28 UTC
Description:
To add the menu item to quickly access the user profile directory (on Windows, it will be %AppData%\LibreOffice).

File > Open user profile directory.

Steps to Reproduce:
-

Actual Results:
-

Expected Results:
-


Reproducible: Always


User Profile Reset: No



Additional Info:
-
Comment 1 V Stuart Foote 2020-03-29 14:27:48 UTC
Can already reach via Help -> Restart in SafeMode, 'Show user profile' on the Advanced tab--which is a more complete means to manipulate profiles.

And, this certainly does not belong on a menu or toolbar entry by default.

That said, for 'Eve' expert users--an UNO command to expose the GetUserProfileURL() from BackUpFileHelper and make it available for customization assignment to toolbar or menu button action could be useful/convenient (i.e. not having to run through the SafeMode restart dialog).

Another option might be to display the User Profile stanza to the Tools -> Options -> Paths panel as default. With no internal action allowing path to open with os/DE default file handler for directory.

@Samuel, what do you think?
Comment 2 Regina Henschel 2020-03-29 17:01:58 UTC
You need not run through the SafeMode restart dialog to get the user path. You can use a macro like:

sub ShowUserPath
dim aService as variant
aService = createUnoService("com.sun.star.util.PathSubstitution")
dim sPath as string
sPath = aService.getSubstituteVariableValue("$(user)")
sPath = ConvertFromURL(sPath)
msgbox (sPath)
end sub
Comment 3 Heiko Tietze 2020-03-31 11:16:34 UTC
Needinfo for Samuel
Comment 4 Samuel Mehrbrodt (allotropia) 2020-03-31 12:20:13 UTC
Two ways to achieve what the reporter requested - I don't see any value in adding  a third way (special uno command) for this.

Unless there is a real use case, I would close this as WORKSFORME.
Comment 5 V Stuart Foote 2020-03-31 12:25:18 UTC
>... would close this as WORKSFORME.

+1