Giter Site home page Giter Site logo

Comments (6)

jojo2357 avatar jojo2357 commented on June 8, 2024

When you ran the linker, did it tell you the location of MusicBee? I am unable to replicate this issue. One thing that might shed light on the underlying issue would be to run the command line command
schtasks /query /tn MusicBeeRichPresenceOpen /XML
which should give some output like this:

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.6" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Version>1.1.0</Version>
    <Date>2021-10-11T13:21:17-08:00</Date>
    <Author>jojo2357</Author>
    <Description>Runs DRP for MusicBee in the background when MusicBee is opened</Description>
    <URI>\MusicBeeRichPresenceOpen</URI>
  </RegistrationInfo>
  <Principals>
    <Principal id="Author">
      <UserId></UserId>
      <LogonType>InteractiveToken</LogonType>
    </Principal>
  </Principals>
  <Settings>
    <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <UseUnifiedSchedulingEngine>true</UseUnifiedSchedulingEngine>
  </Settings>
  <Triggers>
    <EventTrigger>
      <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Security"&gt;&lt;Select Path="Security"&gt;*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and Task = 13312 and (band(Keywords,9007199254740992)) and (EventID=4688)]] and *[EventData[(Data='C:\Program Files (x86)\MusicBee\MusicBee.exe')]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
    </EventTrigger>
  </Triggers>
  <Actions Context="Author">
    <Exec>
      <Command>C:\MDRPStuff\GroovyRP\bin\Release\RunHidden.vbs</Command>
    </Exec>
  </Actions>
</Task>```

From what I can tell, it wont start on battery (that might be your issue, if so, try while charging).

from music-discord-rich-presence.

nizoulou avatar nizoulou commented on June 8, 2024

The first time I linked MusicBee I was indeed asked for the location. It worked normally and after I got my problem. When unlinking and relinking MusicBee, the program does not ask the location anymore, it finds musicbee.exe automatically.

I ran your command and I got 2 differencies with your text :
Line 12 : S-1-5-21-2050646638-811656130-935151240-1002
Line 28 : […] [EventData[(Data='cessus : C:\Program Files (x86)\MusicBee\MusicBee.exe')]] […]
Maybe is the «cessus» the proof of any bug ?

I'm on a tower PC so we can skip the charging problem I guess

from music-discord-rich-presence.

jojo2357 avatar jojo2357 commented on June 8, 2024

Yeah that is really strange I have no idea why that is there because it shouldnt be...

Please confirm that LinkWithMusicBeept1.xml, musicbeelocation.dat, and LinkWithMusicBeeOpen.xml do not contain this extra bit. if they do, remove it and then from that directory run the command schtasks /create /tn MusicBeeRichPresenceOpen /XML LinkWithMusicBeeOpen.xml

You can do the same thing with LinkWithMusicBeeClose.xml but please do inform me of what you do because I have never seen this issue before.

from music-discord-rich-presence.

nizoulou avatar nizoulou commented on June 8, 2024

LinkWithMusicBeeOpen.xml and musicbeelocation.dat were containing this «cessus» so I deleted it (the third file did not have it).
I ran a command prompt and entered your command, the result is a error as shown in my screenshot (denied access despite I ran the prompt as an admin).
LinkWithMusicBeeClose.xml also contained a «cessus», I deleted it and I ran again a prompt then I got the same error.

from music-discord-rich-presence.

jojo2357 avatar jojo2357 commented on June 8, 2024

Okay you can instead run the linker now since you should have fixed the problem. (no clue what caused it) The "automatic" part you found out about earlier will just pull from musicbeelocation.dat so you dont have to mess with the command line. Make sure you run the unlinker first before creating the shortcuts because it wont be able to create a task that already exists.

Note: i dont see a screenshot

from music-discord-rich-presence.

nizoulou avatar nizoulou commented on June 8, 2024

Oh yes it works perfectly, MusicBee is detected in Discord, big thanks !
NB : I tried to reinstall MDRP and the same problem occured, when detecting MusicBee the prompt says «the program is at cessus : C:/…» and I had to delete manually this word because it went in program files

Here in the screenshot that did not shown :
erreur

from music-discord-rich-presence.

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.