Score:0

Change working directory when using "Open with custom command" option

in flag

I was trying to open .exe files in Lubuntu 18.04 32-bit edition and wine 3.0.1 just by double-clicking on the file. I used the "Open with custom command" open with option and issued wine %f but it doesn't work fine with applications which requires its files to be in the same directory, as the command is emulated in another terminal with home as working directory.
I tried to use cd "$(dirname %f)" && wine %f but it doesn't seem to work..

Is there is any way to let it work?

Score:1
in flag
bash -c 'cd "$(dirname %f)" && wine %f'
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.