tf2-rich-presence icon indicating copy to clipboard operation
tf2-rich-presence copied to clipboard

Any chance of Linux support?

Open EmeraldSnorlax opened this issue 5 years ago • 10 comments

Seeing as its all python it should be relatively easy to port -- trying to run build.py or main.py just crashes on me -- perhaps because of using \ for paths instead of / ? Output of tests.py is here

EmeraldSnorlax avatar Jul 20 '19 10:07 EmeraldSnorlax

Yeah, tests and build use backslashes all over the place, but the bulk of the main code should be close to compatible with Linux/MacOS (using os.path functions). As I don't have either OS, I haven't tested them for real. Also note that most of the code has been made specifically for the built releases, which means that I have little to no idea how well it works as it's organized in the repo.

To answer the main question, yes, I would like Linux support at some point. While you're at it, may I see the crash for main.py on Linux?

Kataiser avatar Jul 20 '19 17:07 Kataiser

Sure! Here: https://pastebin.com/c394VmL0

EmeraldSnorlax avatar Jul 21 '19 20:07 EmeraldSnorlax

Ah yes, forward slashes and backslashes in the same path lol

Kataiser avatar Jul 21 '19 20:07 Kataiser

Going down the line and fixing the errors it complains about eventually leaves me off here after running main.py: https://pastebin.com/Xmvwdez7

(ps by fix i mean using a hacky solution and just replacing the \ with a / :^), as well as other file related errors )

It starts, but doesn't want to do much else

Crash log

~~unrelated but found your bandcamp -- holy frick your music is amazing~~

EmeraldSnorlax avatar Jul 21 '19 20:07 EmeraldSnorlax

tasklist is a Windows only command apparently. Honestly, getting the file stuff working is probably the tip of the iceberg considering how much process scanning is going on in this project. At least psutil is cross platform...

Kataiser avatar Jul 21 '19 21:07 Kataiser

yo thanks :)

Kataiser avatar Jul 21 '19 21:07 Kataiser

if its too much of a hassle, dont worry about it, i can live without telling the whole world that im a friendly murderer on 2Fort

EmeraldSnorlax avatar Jul 21 '19 21:07 EmeraldSnorlax

Manged to get it working while working on #53 #53 could be completed once I know the names of the processes

Jan200101 avatar Oct 10 '19 16:10 Jan200101

Nice!

Kataiser avatar Oct 10 '19 23:10 Kataiser

~~actually, dont worry about it, you can close this if you like. i ended up making my own script for it instead.~~

EmeraldSnorlax avatar Oct 22 '19 10:10 EmeraldSnorlax