1060

Under windows 10, the desktop app has a problem

Comments for “Under windows 10, the desktop app has a problem”
 

Posted by murugappan on Wednesday 1st May 2024 at 04:23 GMT

Under windows 10, when i use the desktop app with xampp, it seems to allow the new app to be created under "htdocs" folder and does not work if the new app is in the sun-folder under "htdocs". How do i fix this?
Level One Member

murugappan

User Level: Level One Member

Date Joined: 30/04/2024

Posted by DaFa on Wednesday 1st May 2024 at 07:03 GMT

Hi there, the problem you are experiencing has to do with having a hyphen in the app name 'sun-folder' which is causing a database creation error in the Desktop app. The fix is to modify line 149 in 'db_manager.js' to
var query = "CREATE DATABASE IF NOT EXISTS `" + database + "`";
A simple fix, which I'll do a pull request for very soon. To get around the issue now, you could grab a copy of the code from 'https://github.com/trongate/trongate-desktop-app' and recompile the app or just change the name of your app by removing the hyphen.

happy coding!
Founding Member

DaFa

User Level: Founding Member

Date Joined: 30/11/2018

×