eliranwong / UniqueBible

A cross-platform bible application, integrated with high-quality resources and amazing features, running offline in Windows, macOS and Linux, ChromeOS, Android, iOS. Various running modes are supported.
https://UniqueBible.app
GNU General Public License v3.0
122 stars 34 forks source link

shortcuts problem #1348

Closed AlainWill closed 1 year ago

AlainWill commented 1 year ago

hi need help plz since i updated to the last version 34.38 /34.39 i can no longer start uniquebible with shortcut bat anymore ...the problem is i must open powershell directly and paste ( python D:\Users\UniqueBible\uba.py ) for uniquebible to open other wise i cant start it with shortcut anymore.

onegladiator4u commented 1 year ago

If you open bat file in Note editor what's in it? when I had problem like this i changed the content of bat file to just python uba.py and saved it, then it worked. If you change it like mine do make a backup of the bat file somewhere else before editing. If it doesn't work you can replace it then.

AlainWill commented 1 year ago

When i open the (bat file) the content is: powershell.exe -NoExit -Command "python 'D:\Users\UniqueBible\uba.py'"

eliranwong commented 1 year ago

Does it work if you change the content of uba file to 'python D:\Users\UniqueBible\uba.py', edit and save with a text editor, e.g. notepad?

AlainWill commented 1 year ago

in which section of the uba file content should i change it ?

onegladiator4u commented 1 year ago

in which section of the uba file content should i change it ?

bat file i guess

AlainWill commented 1 year ago

i try changes in the bat file but sadly nothing works (shortcut).

onegladiator4u commented 1 year ago

Did you edit the file in the root folder named 'UniqueBibleApp.bat'? It'll be in D:\Users\UniqueBible. I don't think we can edit the shortcut.

AlainWill commented 1 year ago

yes i did all that.

eliranwong commented 1 year ago

If you can use command line to launch UBA with powershell, you should be able to launch UBA via a *.bat file.

Just enter the same command you enter in powershell in the *.bat file. I think it should be straightforward to get it work.

In your case, the desktop shortcut does not work. I guess it may be something to be with where the UBA is installed. I saw the path D:\Users\UniqueBible . Is "UniqueBible" one of your users name or the name of UniqueBible folder?

AlainWill commented 1 year ago

It launch UBA normaly In Powershell:

python D:\Users\UniqueBible\uba.py D:\Users\UniqueBible\venv_Windows_3.11.2\Lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)

If i try with (UniqueBibleApp.bat) in the folder UBA....Dir....(D:\Users\UniqueBible\uba.py) Nothing happens In .Bat file: powershell.exe -NoExit -Command "python 'D:\Users\UniqueBible\uba.py'"

Nothing either on my desktop: no shortcuts

But if i delete the (UniqueBibleApp.bat) in the folder UBA...By launch UBA with powershell it recreate the UniqueBibleApp.bat with the same content: powershell.exe -NoExit -Command "python 'D:\Users\UniqueBible\uba.py'"

Now to answer the question above it's the users name not the name of UniqueBible folder

AlainWill commented 1 year ago

finaly i got it working.thank for helping