• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0
    S Offline
    1. Strawberry Music Player Forums
    2. sthones

    sthones

    @sthones

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    sthones Unfollow Follow
    • RE: Get currently playing song from command line?

      just in case anyone needs this later, here's my workaround:

      STRAWBERRY_PID=$(ps -C strawberry -o pid= 2>/dev/null | sed -e 's/ //g')
      
      ls -l "/proc/${STRAWBERRY_PID}/fd" | grep "<path to my music>"
      

      so I'm just getting the file descriptor of an open file in my music storage, opened by the strawberry process.

      not nice, but working, at least for files (not for streaming).

      posted in Feature Suggestions
      S
      sthones
    • Get currently playing song from command line?

      Hi,

      is there a way to get the currently playing song from the command line?
      I know there is the sqlite database that I can query?
      is there an sql statement that I can run to find if the player is playing or paused, and what song is playing currently?
      is there another way of getting that information from the outside?

      sthones

      posted in Feature Suggestions
      S
      sthones