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"

Template:

ghub add-app --app-path "" --name "" --poster-path ""

Remove a custom application:

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

Template:

ghub remove-app --app-path ""

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

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.