Code Monkey home page Code Monkey logo

ghub-settings-editor's Introduction

ghub-settings-editor

Having a PC game pass (Xbox game pass PC) game you can't add to Logitech G HUB due to permission errors? This little tool can help.

Disclaimer: This is only for Windows PC and you will have to find out the path of executable file of the app on your own. Always shut down G Hub before running this script and always backup C:\Users\your_username\AppData\Local\LGHUB\settings.db beforehand.

Before you start

Download and install Node.js if you haven't.

Usage as a CLI tool

You run these commands in cmd or powershell, search them in Windows start menu!

Installation

npm install -g https://github.com/markni/ghub-settings-editor

Add a custom application:

ghub add-app --app-path 'C:\WindowsApps\Microsoft.254428597CFE2_1.3266.27842.0_x64__8wekyb3d8bbwe\HaloInfinite.exe' --name 'Halo Infinite' --poster-path 'F:\Posters\halo_infinite_poster.jpg'

Remove a custom application:

ghub remove-app --app-path 'C:\WindowsApps\Microsoft.254428597CFE2_1.3266.27842.0_x64__8wekyb3d8bbwe\HaloInfinite.exe'

Usage as a node module

Installation

npm install https://github.com/markni/ghub-settings-editor --save

Usage

const ghub = require('ghub-settings-editor');
ghub.add({applicationPath:'C:\\\\WindowsApps\\\\Microsoft.254428597CFE2_1.3266.27842.0_x64__8wekyb3d8bbwe\\\\HaloInfinite.exe', name:'Halo Infinite', posterPath: 'F:\Posters\halo_infinite_poster.jpg'});
ghub.remove({applicationPath:'C:\\\\WindowsApps\\\\Microsoft.254428597CFE2_1.3266.27842.0_x64__8wekyb3d8bbwe\\\\HaloInfinite.exe'});

Notes

This script is inspired by a manual solution provided by reddit user baseball-is-praxis

ghub-settings-editor's People

Contributors

markni avatar

Stargazers

 avatar  avatar  avatar  avatar

Forkers

bancrash

ghub-settings-editor's Issues

Profile created is causing malfunction of LGhub

Hi, since a recent update of LGhub, creating a new profile is causing a malfunction on LGHub. After researching the json, I've found that the issue is that the profiles created by this script are missing two fields: "lightingCard" and "syncLightingCard". Without those fields it seems that the program is not working as expected.

It seems that those fields are related to the lighting profiles, but I don't know how to create a new one for each game, so my research stopped there.

EDIT: As a workaround, I removed the creation of the profile. So the new app doesn't have any profile attached, but you can copy the profile of another game, and with that is working as expected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.