I don't know if this is an Ubuntu question or a Drupal question but since it SEEMS OS-related I'll ask it here. Sorry if that's a mistake. Here's my question:
Summary of problem:
I've added a bootstrap sub-theme to my new Drupal 8 site and am in the process of changing the name of all the files to reflect my sub-themes name. I was able to change the .info.yml and libraries.yml files just fine but I get an error whenever I try to change the THEMENAME.theme file to match my sub-theme name. I tried this with multiple installations of Drupal 8.
Current permissions:
I have already given myself full permissions over the site directory to do whatever I want, using the following: sudo chmod ugo+wrx /var/www/drupal/ -Rf
I've also given the apache user ownership over the site directory, like so: sudo chown -R www-data:www-data /var/www/sitename/*
This is the error I get:
Sorry, could not rename “THEMENAME.theme” to “new-subtheme-name.theme”: Unable to rename desktop file.
Thoughts on what might be going on here?
21 Answer
I had the same problem. As a workaround I created new-subtheme-name.theme, copied code from THEMENAME.theme over to the new file and deleted THEMENAME.theme.