Dolphin, the GameCube and Wii emulator - Forums

Full Version: Some help with this Global User Directory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(12-20-2016, 11:30 PM)JosJuice Wrote: [ -> ]I'm not very familiar with macOS, but yes, I think that's the one.

I edited my previous post but in case you don't get a notification about that I'll reply here as well.

GBD is just a custom folder where i want to keep my global user directory


Result of running  

Code:
Isaks-iMac:~ isakkeyten$ /Volumes/STORAGE/Games/Dolphin/Dolphin.app/ -u /Volumes/STORAGE/Games/Dolphin/GBD/
-bash: /Volumes/STORAGE/Games/Dolphin/Dolphin.app/: is a directory
Code:
Isaks-iMac:~ isakkeyten$ /Volumes/STORAGE/Games/Dolphin/ -u /Volumes/STORAGE/Games/Dolphin/GBD/
-bash: /Volumes/STORAGE/Games/Dolphin/: is a directory


So nothing happened basically. What am I doing wrong?
I did some google'ing. Try:
Code:
open -a Dolphin --args -u /Volumes/STORAGE/Games/Dolphin/GBD/

The command "open" tries to open an application, the option "-a" says that you want to open an application by name ("Dolphin" in this case). "--args" says to open that an argument for the application after that parameter, in this case set the user-directory.
Ok I opened my Dolphin.app by rightclick->Show package contents, in that folder structure i navigated to Contents and then MacOS - and in there I found Dolphin executable with terminal icon and no file extension, which when I double click a terminal instance is being run that starts the Dolphin app, and when the terminal is closed the Dolphin process window dies as well. So basically Dolphin.app/Contents/MacOS/Dolphin is the path to the executable - NOT THE DOLPHIN.APP!

With this in mind I ran /Dolphin.app/Contents/MacOS/Dolphin -u /My/Custom/Folder/Path - and voila. I got a new instance of dolphin with no settings and my custom folder path was populated with global user directories and settings. But - sad news. When i open the dolphin app regularly again - my instance is still using the global user directory instead of the custom one. The command just starts a NEW instance of your application - and doesnt fully transfer or convert your application settings to permanently use the custom folder instead of its default global user directory. Altho, I copied my old Global User Directory folders and files (which reside in - /YourMainDrive/Users/YourUser/Library/Application support/Dolphin - to my new custom folder path and overwritten everything - and then when I start the new instance with the /Dolphin.app/Contents/MacOS/Dolphin -u /My/Custom/Folder/Path command - I am presented with my old saves (overwritten) in my new directory.

But!

Now everytime I want to play using my directory instead of the default one, I must run the /Dolphin.app/Contents/MacOS/Dolphin -u /My/Custom/Folder/Path command from terminal EVERYTIME.

This is not an elegant solution and I don't know what to do. I tried making an alias (shortcut) in hopes i can append "-u /My/Custom/Folder/Path" but to no avail - i don't see an option to edit shortcuts in macos like in windows.

This being said - can any mac expert tell me how to edit aliases target and add run arguments?

Bonus: I'd like to leave a suggestion to the developers to simply add a goddamn option to add your own path for the global user directory. It's gonna make all of our lives easier.

[Image: FuJLRLL.jpg]

A quick sketch for how the menu would look like.

This shouldn't be hard to implement too.
(12-21-2016, 12:08 AM)isakkeyten Wrote: [ -> ]Bonus: I'd like to leave a suggestion to the developers to simply add a goddamn option to add your own path for the global user directory. It's gonna make all of our lives easier.

[Image: FuJLRLL.jpg]

A quick sketch for how the menu would look like.

This shouldn't be hard to implement too.

That's actually not simple to implement. All settings are stored in the user directory, but storing this setting in the user directory wouldn't work, because then Dolphin would need to know where the user directory is before it can find out where the user directory is.
Bonus help for those having same issue as me and can't rely on this forum to help them - I found a half-assed solution for running the command from an icon instead of opening terminal and typing it everytime you wanna play with your new custom Global User Directory - and that is the following.

Start up Automator.
Create a new Application.
Add a single Run Shell Script.
Add your command there (/Dolphin.app/Contents/MacOS/Dolphin -u /Your/Custom/Folder/Path)
Test run
File - Save - Name your application.
Put your new Application.app wherever you like (even ~/Applications - this is great since now you can start this from your Launchpad all while having all your Dolphin executables and directories on another drive)

[SOLVED] as best as I could


edit: Bonus 2 - edit your Application.app icon that you made with Automator by using the following technique.

https://i.stack.imgur.com/bo9w5.jpg
(12-21-2016, 12:08 AM)isakkeyten Wrote: [ -> ]Bonus: I'd like to leave a suggestion to the developers to simply add a goddamn option to add your own path for the global user directory. It's gonna make all of our lives easier.
(cut image)
A quick sketch for how the menu would look like.
This shouldn't be hard to implement too.

(12-21-2016, 12:22 AM)JosJuice Wrote: [ -> ]That's actually not simple to implement. All settings are stored in the user directory, but storing this setting in the user directory wouldn't work, because then Dolphin would need to know where the user directory is before it can find out where the user directory is.

Idea that (probably) can be implemented: Use an environment variable, like DOLPHIN_EMU_PATH. This way, the user could set their preference in their .profile and won't have to do some shortcut or cli-things.
(12-21-2016, 12:29 AM)Neui Wrote: [ -> ]Idea that (probably) can be implemented: Use an environment variable, like DOLPHIN_EMU_PATH. This way, the user could set their preference in their .profile and won't have to do some shortcut or cli-things.

Yes, that's a reasonable solution, similar to the registry one that can be used on Windows.
That would work fine for Windows, but I don't know if it's very good practice to have a random emulator be messing with ~/.bash_profile just to keep an env variable persistent. I don't know if it can be done on macOS? I imagine it can but I'm not familiar.
(12-21-2016, 01:05 AM)Helios Wrote: [ -> ]That would work fine for Windows, but I don't know if it's very good practice to have a random emulator be messing with ~/.bash_profile just to keep an env variable persistent.

I agree, it's not especially nice of the emulator to mess around with it on its own (and it doesn't do that with the registry on Windows either). I was assuming Neui didn't mean that, since they said "the user could set their preference in their .profile".
If this is a "user do it themselves" thing, I'm all for it.
Pages: 1 2