Giter VIP home page Giter VIP logo

Comments (3)

ritiek avatar ritiek commented on August 11, 2024

@fireXtract I tested with creating a new user on my machine. You could just run the script without sudo and everything seems to work fine. I can delete/rename/modify the files without root. Does that fix for you?

from spotify-downloader.

fireXtract avatar fireXtract commented on August 11, 2024

Yes that is true. My bad. I went looking for a solution to a problem that didn't exist! One will run into issues if they run the script as sudo then later as a regular user. This is because the last_albumart.jpg at the very least will have root as owner. My posted code will need to check if 'SUDO_UID' exists before writing chown, otherwise the program wont run WITHOUT sudo.

from spotify-downloader.

ritiek avatar ritiek commented on August 11, 2024

Yeah. Basically, don't use the script as a lower privileged user after using it as a higher privileged user otherwise it will cause problems.

@fireXtract thanks for this issue. I made a commit in README.md to remove sudo as it is not necessary at all.

from spotify-downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.