ViPad icon indicating copy to clipboard operation
ViPad copied to clipboard

problem with quotes needed for paths and arguments that need quotes

Open seizepuppet opened this issue 1 year ago • 0 comments

I use chrome profiles and I have 2 shortcuts that I use regularly. They target on the windows desktop shortcut is: "C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 2" "C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Default"

When I moved these two shortcuts into vipad, the arguments weren't included at all. I manually entered them into vipad as just the argument section and they didn't work. I removed the quotes used in arguments, so the vipad shortcuts argument section then looked like: --profile-directory=Default --profile-directory=Profile 2

from vipad, click on the default it worked, but the profile 2 loaded chrome but not the right profile because it needs the quotes. But when I add quotes, it isn't creating the command line properly and doesn't run chrome at all.

There is a workaround, by using cmd in administrator mode, making a \program files\bin\profile2.bat I put the correct command line call to chrome to load profile 2 as: start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 2"

then the vipad shortcut just contains: C:\Program Files\bin\profile2.bat

which doesn't need any quotes or arguments at all, so then it works.
the start "" part is since it's calling a batch file this allows the batch file to exit and not leave any dos windows on screen.

seizepuppet avatar Dec 21 '23 17:12 seizepuppet