Skip to content

Add support for custom web ui themes#409

Open
leonidasIIV wants to merge 1 commit intobinhex:masterfrom
leonidasIIV:custom_themes
Open

Add support for custom web ui themes#409
leonidasIIV wants to merge 1 commit intobinhex:masterfrom
leonidasIIV:custom_themes

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