Home of the Squeezebox™ & Transporter® network music players.
Page 16 of 16 FirstFirst ... 6141516
Results 151 to 157 of 157
  1. #151
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,014

    --nomysqueezebox: disable allmysb.comintegration in LMS 7.9

    > will you add the --nomysqueezebox switch to the settings page eventually
    > as part of LMS?


    Not easily, because a.) on most systems LMS does not have the privileges
    required to modify startup parameters, and b.) storing the flag in the
    prefs wouldn't help, as those are read long after the mysb related code
    needed to be initialized. Maybe this could be resolved with some
    re-factoring, but I think it's not worth the hassle at this point.

    > I'm asking because right now when I restart the server from iPeng or
    > after installing a plugin it starts *with* mysqueezebox.com and I always
    > have to restart manually with the switch.


    What OS are you on? Where did you set that parameter? If applied in the
    right place, it should certainly stick.

    --

    Michael

  2. #152
    I'm on macOS 10.12. There are 2 LMS restart scenarios: One is where I reboot my entire computer. For that LMS creates a LaunchAgent in my user account which I have modified (read-only) so that it will load with the switch --nomysqueezebox. So that's not a problem.

    The second is the problem, i.e. when the restart command comes from the LMS code (like after installing a plugin) or from within iPeng. Whenever I need to restart LMS this way, I guess it is done via the shell script in the preferences pane bundle at /Library/PreferencesPanes/Squeezebox.prefPane/Contents/Resources. You have a script there called start-server.sh with the line ./slimserver.pl --daemon $1 &> /dev/null &
    So it does take arguments ($1) which is why I can restart the server in terminal manually: sh '/Library/PreferencePanes/Squeezebox.prefPane/Contents/Resources/start-server.sh' --nomysqueezebox

    But I think the restart from within iPeng and the restart after installing/removing plugins just call the script without any argument. Therefore I get the mysqueezebox again and have to restart LMS manually each time to get rid of it.

    So my thinking was that a setting could make LMS call the script with the --nomysqueezebox switch as argument by default.

  3. #153
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,014

    --nomysqueezebox: disable allmysb.comintegration in LMS 7.9

    > But I think the restart from within iPeng and the restart after
    > installing/removing plugins just call the script without any argument.


    Oh, hmm... platform independence isn't given here. I might need to look
    into some other means of implementing this.

    --

    Michael

  4. #154
    Senior Member JJZolx's Avatar
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    11,495
    Is it really that hard to read prefs before initiating anything else?

  5. #155
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,014

    --nomysqueezebox: disable allmysb.comintegration in LMS 7.9

    > Is it really that hard to read prefs before initiating anything else?

    The problem is that in order to prevent some code from being initialized
    (compiled), you have to define a constant. And a constant obviously
    needs to be defined early on. Before the prefs management code is loaded.

    I'm sure it could be done somehow. But it would likely require some
    rather involved re-factoring. Probably worth a second thought. But
    that's how it is right now.

    --

    Michael

  6. #156
    I had the same issue on a mac and ended up just modifying the start-server.sh script. Obviously doesn't survive an upgrade:

    http://forums.slimdevices.com/showth...erences-on-Mac
    LMS Server: Mac Mini with music library on Drobo 5D
    Living Room: Raspberry Pi + AlloBoss -> Onkyo A 9010 -> KEF LS50
    Study: Raspberry Pi -> Audio Engine D1 -> Audio Addon Pro T3
    Kitchen: Squeezebox Radio
    Bedroom: SB3 -> B&W Zeppelin

  7. #157
    I thought about that but decided against it. Not only because you'd have to repeat it after every update.
    I'd prefer a cleaner (and maybe more romust) way, one that only developers like Michael could provide.
    So until such a solution comes along one day I'll wait and continue to manually restart LMS.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •