Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom web ui themes #409

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leonidasIIV
Copy link

Added a script to be run by root at boot of container that provides support for adding custom themes to the deluge web ui by performing the following actions:

  1. Check for the presence of the /skins/themes, /skins/icons, and /skin/images folders and creates them if they are not present
    
  2. Checks for broken symlinks from the last run and removes them with unlink
    
  3. Creates new symlinks to reflect the current state of the files in the /skins sub-folders
    

The contents of the /skins/themes, /skins/icons, and /skins/images folders are mapped to the relevant deluge web ui folders currently located at /usr/lib/python3.12/site-packages/deluge/ui/web. This allows a user to add a persistent set of custom theme files to the /skins folders using volume mounting.

TLDR; User creates volume mounts for the /skins sub-folders and places custom theme files in them. While the container is not running, the user modifies the /config/web.conf file to specify the custom theme to be used on next run.

Adding support for custom deluge web ui themes by creating a skins folder for the end user and symlinking those folder contents to the correct deluge folder. adding a script to run once at boot as root to perform symlink operations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant