• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Can't find file when running from command line outside of directory

    Scheduled Pinned Locked Moved
    Technical Help
    2
    2
    104
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      timberry
      last edited by

      If I'm at the command line (with strawberry already open) and do something like strawberry Some\ Artist\ -\ Some\ Track.flac, I get an error that it can't find the file.

      0f5e4c9b-a28a-40d4-9cce-345dc35eea28-image.png

      If I launched strawberry from the command line in that directory, then it will work, however.

      If I use a relative path like ../other-dir/Some\ Artist… it won't give me that error immediately, it'll enqueue the track (with the proper tags, so it's evident that it did find the file and read it) but I'll get the same error along with some Could not open resource for reading error messages when I try to actually play the file that it's put in the playlist.

      ec03db99-8c72-40a7-89bf-336ea12ec174-image.png

      Absolute paths always work, e.g. strawberry "$(readlink -f Some\ Artist\ -\ Some\ Track.flac)"

      Previously using clementine these would all just work - is there something I can do? This is on Ubuntu 24.04 using Strawberry 1.1.3 installed from the website by downloading the .deb.

      jonasJ 1 Reply Last reply Reply Quote 2
      • jonasJ
        jonas @timberry
        last edited by

        @timberry
        it's a bug, thanks for reporting.
        Fixed now https://github.com/strawberrymusicplayer/strawberry/commit/07c898581ccdab9d5900911083f84b9b03221a61

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Powered by NodeBB | Contributors