Skip to content

SangzorDeGeit/Dragon-Display

Repository files navigation

Dragon-Display

Application based on Rust to display images on a second screen, suited for Dungeons & Dragons

Settings

Dragon-Display uses settings to store certain program functionalities. You need to run the following commands in order to make Dragon-Display work (on linux):

mkdir -p $HOME/.local/share/glib-2.0/schemas
cp src/settings/com.github.SangzorDeGeit.Dragon-Display.gschema.xml $HOME/.local/share/glib-2.0/schemas/
glib-compile-schemas $HOME/.local/share/glib-2.0/schemas/

Using Google Drive

In order to use google drive you need to get a client secret from Google and make sure that some values are set correctly in this file.

Configuring the Client secret

To get a client secret follow the following steps:

  1. Go to [https://console.cloud.google.com] and log in with your google account
  2. Create a project if prompted
  3. Click on the navigation menu (top left) -> APIs & Services -> Library
  4. In the searchbar search for 'Google Drive API' and click on Google Drive API
  5. Click on enable
  6. Follow the steps to configure an oauth consent screen
  7. After oauth consent screen is configured you may need navigate to APIs & Services -> oauth consent screen
  8. Click on Audience (left bar) and add a user (give your gmail)
  9. Navigate to APIs & Services -> credentials
  10. Click Create credentials (top) -> Oauth Client Id
  11. Select Application type: Desktop app.
  12. Give it a name (like PC-)
  13. In the pop up window click 'Download JSON'
  14. Rename the downloaded file to 'client_secret.json'
  15. Edit the file: change the value of redirect_uris to: ["http://localhost:8000"]
  16. Put the file in the directory from where you run the program

Setup folder in your drive

Create a folder in your google drive in which you put all the images that you want to display using Dragon-Display. When adding a campaign you can select this folder. Dragon display will use the selected folder to synchronize images to a local folder

About

Application based on Rust to display images on a second screen, suited for Dungeons & Dragons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages