Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 19 Nov 2018, 11:44
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Script to run an app in Japanese?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
lolo69


Joined: 01 Oct 2017
Posts: 77
Location: Your heart <3

PostPosted: Sat 03 Feb 2018, 16:20    Post subject:  Script to run an app in Japanese?  

After a time, i find out that the game i downloaded didn't work because i did this:
Code:
wine th06.exe

(btw, it is a windows .exe)
And i needed to do this:
Code:
LANG=ja_JP.UTF-8 wine th06.exe

And now it works, but only running it by that way using the terminal.
So i tried to make a script:
Code:
#!/bin/sh

LANG=ja_JP.UTF-8 wine /root/Desktop/Yume/Gamusa/Touhou6/th06e.exe

It runs but like if i did not type "LANG=ja_JP.UTF-8" (Without that it runs but immediately crashs) and using the "Set run Action" typing "LANG=ja_JP.UTF-8 wine "$@"" on the .exe does not even run it.

So, did i typed something wrong? do i need something else?

Do you know the way (jeje) to make a script to make it run? if yes share your knowledge please.

lolo69.

_________________
-I'm actually using Tahrpup 6.0.5 nopae frugally installed-

"Bold Words between quotes"

Back to top
View user's profile Send private message 
matchpoint

Joined: 26 Jan 2018
Posts: 169

PostPosted: Sat 03 Feb 2018, 17:16    Post subject:  

Hi lolo69,

StackOverflow has a few suggestions. Start with this one.

Or depending on where your program is, possibly like this:
Code:
LC_ALL=ja_JP.UTF-8 ./myapp.exe
Back to top
View user's profile Send private message 
lolo69


Joined: 01 Oct 2017
Posts: 77
Location: Your heart <3

PostPosted: Sat 03 Feb 2018, 17:38    Post subject:  

matchpoint, thanks for answer but did not work.

What did work was this:
Code:
#!/bin/sh
cd /the/game/folder
LANG=ja_JP.UTF-8 wine game.exe

Really i don't know why but adding cd just worked.

Long live Touhou project!!!

lolo69.

_________________
-I'm actually using Tahrpup 6.0.5 nopae frugally installed-

"Bold Words between quotes"

Back to top
View user's profile Send private message 
matchpoint

Joined: 26 Jan 2018
Posts: 169

PostPosted: Sat 03 Feb 2018, 17:58    Post subject:  

Like I said, "depending on WHERE your program is."
Code:
LANG=ja_JP.UTF-8 wine /the/game/folder/game.exe

In other words, your console has to be in the same room as the executable.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0569s ][ Queries: 11 (0.0065s) ][ GZIP on ]