Application based on Rust to display images on a second screen, suited for Dungeons & Dragons
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/
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.
To get a client secret follow the following steps:
- Go to [https://console.cloud.google.com] and log in with your google account
- Create a project if prompted
- Click on the navigation menu (top left) -> APIs & Services -> Library
- In the searchbar search for 'Google Drive API' and click on Google Drive API
- Click on enable
- Follow the steps to configure an oauth consent screen
- After oauth consent screen is configured you may need navigate to APIs & Services -> oauth consent screen
- Click on Audience (left bar) and add a user (give your gmail)
- Navigate to APIs & Services -> credentials
- Click Create credentials (top) -> Oauth Client Id
- Select Application type: Desktop app.
- Give it a name (like PC-)
- In the pop up window click 'Download JSON'
- Rename the downloaded file to 'client_secret.json'
- Edit the file: change the value of redirect_uris to:
["http://localhost:8000"] - Put the file in the directory from where you run the program
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