teeedubb / teeedubb-xbmc-repo Goto Github PK
View Code? Open in Web Editor NEWteeedubb's kodi addons
teeedubb's kodi addons
I may have to gather more detailed information later... bug background is that Fedora32 (rpmfusion) is shipping kodi with python3 support. I'm getting errors when loading the steam launcher:
2020-05-07 19:35:18.275 T:140641544079104 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TabError'>
Error Contents: inconsistent use of tabs and spaces in indentation (main.py, line 159)
Traceback (most recent call last):
File "/home/wberrier/.kodi/addons/script.steam.launcher/default.py", line 2, in <module>
import resources.main
File "/home/wberrier/.kodi/addons/script.steam.launcher/resources/main.py", line 159
display = None
^
TabError: inconsistent use of tabs and spaces in indentation
-->End of Python script error report<--
I tried running the steam launcher on NixOS with Kodi 20.1 and got this error in the logs:
2023-05-28 16:17:39.202 T:1714 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'FileNotFoundError'>
Error Contents: [Errno 2] No such file or directory: 'which'
Traceback (most recent call last):
File "/home/telku/.kodi/addons/script.steam.launcher/default.py", line 2, in <module>
import resources.main
File "/home/telku/.kodi/addons/script.steam.launcher/resources/main.py", line 393, in <module>
fileChecker()
File "/home/telku/.kodi/addons/script.steam.launcher/resources/main.py", line 173, in fileChecker
if subprocess.call(["which", "xdotool"]) != 0:
File "/nix/store/95cxzy2hpizr23343b8bskl4yacf4b3l-python3-3.10.11/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/nix/store/95cxzy2hpizr23343b8bskl4yacf4b3l-python3-3.10.11/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/nix/store/95cxzy2hpizr23343b8bskl4yacf4b3l-python3-3.10.11/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'which'
-->End of Python script error report<--
I also tried to disable the checks for xdotool
in the configuration, but I still get the same error.
Steam fails to launch on my Linux machine with the message, that no Window Manager is running. Upon inspection the failing bit of code in steam-launch.sh is
DP=$(w -hs | awk '{print $3}') && export DISPLAY=$DP
On my machine w -hs
outputs
username tty1 :0 21:33 /bin/sh /usr/bin/startkde
username pts/0 :0 21:15 kded5 [kdeinit5]
username pts/1 :0 0.00s w -hs
And therefore the resulting DISPLAY variable is
:0
:0
:0
which is incorrect and Steam is unable to connect to the display.
If the above line is replaced by
DP=$(w -hs | head -n 1 | awk '{print $3}') && export DISPLAY=$DP
to only use the first line of the result, the resulting DISPLAY variable is correct and Steam starts as expected.
Currently running Kodi: 20.0-ALPHA1 (19.90.101) Git:20210403-145e4133eb
I get the following exception thrown when attempting to use this plugin:
2021-04-05 01:58:13.343 T:1238310 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: module 'xbmc' has no attribute 'translatePath'
Traceback (most recent call last):
File "/home/tv/.kodi/addons/script.steam.launcher/default.py", line 2, in <module>
import resources.main
File "/home/tv/.kodi/addons/script.steam.launcher/resources/main.py", line 384, in <module>
scripts_path = os.path.join(getAddonDataPath(), 'scripts')
File "/home/tv/.kodi/addons/script.steam.launcher/resources/main.py", line 59, in getAddonDataPath
path = xbmc.translatePath('special://profile/addon_data/%s' % scriptid)
AttributeError: module 'xbmc' has no attribute 'translatePath'
-->End of Python script error report<--
Hi @teeedubb ,
Your repository doesn't seem to work for Kodi v20. After installing it from the zip and then trying to access it in Kodi I get the message "Could not connect to repository".
I enabled debugging mode and found these error messages:
2023-02-09 17:47:51.477 T:14825 error <general>: Repository add-on repository.teeedubb uses old schema definition for the repository extension point! This is no longer supported, please update your addon to use <dir> definitions.
2023-02-09 17:47:51.477 T:14825 error <general>: Repository add-on repository.teeedubb does not have any directory and won't be able to update/serve addons! Please fix the addon.xml definition
OS: Ubuntu 22.04
Kodi: 20.0.0 (20230115)
Let me know if you'd like me to do any testing/debugging.
Cheers
Hi, the launcher fails to launch steam from /usr/games/steam. It claims that something is in the log but I can't see anything in it.
I just installed steam on my ubuntu 17.10 x64 (htpc) and the plugin from superrepo. I configured to match the steam binary (/usr/games/steam), kodi (17.6) location was correct. I use lightdm as dm. wmctrl is installed.
is there anything known ? can i turn on debug infos for that plugin or do i have to turn on debug general in kodi? it just says "check kodi.log" but, there is no entry from that steam app in that log. The last log entry is from the CEC adapter
Hi teeedubb,
I've modified your fbi plugin for bagel radio, if you want to include that in the repo can you make a dummy I can fork?
also, do you know what the icon requirements are for kodi/xbmc, is there a size limit or something?
cheers
My current Kodi setup will put my system to sleep after X minutes of inactivity. For that reason I have the steam.launcher
plugin configured with
Quit Kodi: Yes
Force kill Kodi after X seconds: 0
Otherwise Kodi would put my system to sleep while playing a game.
The problem is that once Steam boots, Kodi no longer closes, and once I close Steam, the script is still running in the system tray.
I checked Kodi's logs to see if there were any errors during the plugin's execution but I didn't see any.
If I update the plugin config to this:
Parameters to pass to the Steam executable: -oldbigpicture
the plugin works again, but Steam is eventually going to remove that flag.
Update:
I see that there's been acknowledgement of this issue finally: https://forum.kodi.tv/showthread.php?tid=157499&page=86, curious if/when any progress will be made on a patch since I originally posted the issue in October.
Original beta issue:
I've opted in to the new Steam beta that allows to test-drive Big Picture with the better SteamOS layout.
The only thing I changed in the plugin config was this addition in Advanced
Parameters to pass to the Steam executable: -gamepadui
When I remove that flag, things behave as expected again.
Thanks for making this, I think it'll be really handy once I get it running.
So when I try to run the app, it fails. When debugging's on, I found out I needed wmctrl
, so I installed it and restarted. However, it's still telling me that no window manager exists. I'm running the latest Gnome 3, though, so I know I have Mutter installed. What should I do?
07:38:48.402 T:139654725891840 DEBUG: CPythonInvoker(24, /home/trey/.kodi/addons/script.steam.launcher/default.py): start processing
07:38:48.479 T:139654725891840 DEBUG: script.steam.launcher: ****Running Steam-Launcher v3.2.3....
07:38:48.479 T:139654725891840 DEBUG: script.steam.launcher: running on osAndroid, osOsx, osLinux, osWin: 0 0 1 0
07:38:48.479 T:139654725891840 DEBUG: script.steam.launcher: System text encoding in use: UTF-8
07:38:48.479 T:139654725891840 DEBUG: script.steam.launcher: usr scripts are set to be checked for updates...
07:38:48.479 T:139654725891840 DEBUG: script.steam.launcher: usr scripts are not set to be deleted, running version check
07:38:48.480 T:139654725891840 DEBUG: script.steam.launcher: sys "steam.launcher.script.revision=": 015
07:38:48.480 T:139654725891840 DEBUG: script.steam.launcher: usr "steam.launcher.script.revision=": 015
07:38:48.480 T:139654725891840 DEBUG: script.steam.launcher: userdata script are up to date
07:38:48.480 T:139654725891840 DEBUG: script.steam.launcher: skipping deleting userdata scripts, option disabled: delUserScriptSett = false
07:38:48.480 T:139654725891840 DEBUG: script.steam.launcher: script file already exists, skipping copy to userdata: /home/trey/.kodi/userdata/addon_data/script.steam.launcher/scripts/steam-launch.sh
07:38:48.492 T:139654725891840 DEBUG: script.steam.launcher: wmctrl present, checking if a window manager is running...
07:38:48.511 T:139654725891840 DEBUG: script.steam.launcher: ERROR: A window manager is NOT running - unless you are using the SteamOS compositor Steam BPM needs a windows manager. If you are using the SteamOS compositor disable the addon option "Check for program wmctrl"
07:38:48.511 T:139654725891840 INFO: CPythonInvoker(24, /home/trey/.kodi/addons/script.steam.launcher/default.py): script aborted
Hi
I was using the module to launch steam in xbmc (ubuntu 14.04). After steam exit, xbmc did not restart. After searching for a long time, I looked in the changelog and saw that this module requires wmctrl to be installed on Linux. Is it possible to clearly state it, maybe in the README.txt, that wmctrl should be installed?
Thanks!
Do you have any ideas on how to make the SteamLauncher work when Kodi is in standalone mode? I know it's missing the window manager, but that seems like it shouldn't be hard to fix. I've tried starting openbox before the steam executable is run, but that doesn't work.
Aside: What I've actually done is ssh into my HTPC while Kodi is running in standalone, then run openbox --replace --sm-disable --startup "steam -bigpicture"
. It seemed like if I can get it running like that, it should be fairly easy to turn this into a solution using the pre-run hook of your addon.
I know steam is started, because I get the intro sounds and the GUI sounds. But I don't see anything, other than the "updating steam" message.
Any ideas?
Hi there,
I recently upgraded to Kodi and found the addon to not exit Kodi after launching Steam BPM.
When I activate the addon, this is the debug log:
14:41:47 T:5220 NOTICE: -->Python Interpreter Initialized<--
14:41:47 T:5220 NOTICE: script.steam.launcher: ****Running Steam-Launcher v3.1.1....
14:41:47 T:5220 NOTICE: script.steam.launcher: running on osAndroid, osOsx, osLinux, osWin: 0 0 0 1
14:41:47 T:5220 NOTICE: script.steam.launcher: System text encoding in use: mbcs
14:41:47 T:5220 NOTICE: script.steam.launcher: usr scripts are set to not be checked for updates, skipping version check
14:41:47 T:5220 NOTICE: script.steam.launcher: skipping deleting userdata scripts, option disabled: delUserScriptSett = false
14:41:47 T:5220 NOTICE: script.steam.launcher: script file already exists, skipping copy to userdata: C:\Users\twig\AppData\Roaming\Kodi\userdata\addon_data\script.steam.launcher\scripts\SteamLauncher-AHK.ahk
14:41:47 T:5220 NOTICE: script.steam.launcher: script file already exists, skipping copy to userdata: C:\Users\twig\AppData\Roaming\Kodi\userdata\addon_data\script.steam.launcher\scripts\SteamLauncher-AHK.exe
14:41:47 T:5220 NOTICE: script.steam.launcher: skipping program file check, option disabled: filePathCheck = false
14:41:47 T:5220 NOTICE: script.steam.launcher: pre steam script: false
14:41:47 T:5220 NOTICE: script.steam.launcher: post steam script: false
14:41:47 T:5220 NOTICE: script.steam.launcher: quit setting selected: 0
14:41:47 T:5220 NOTICE: false
14:41:47 T:5220 NOTICE: script.steam.launcher: attempting to launch: "C:\Users\twig\AppData\Roaming\Kodi\userdata\addon_data\script.steam.launcher\scripts\SteamLauncher-AHK.exe" "E:\Games\Steam\Steam.exe" "C:\Program Files (x86)\Kodi\Kodi.exe" "0" "false" "false" "false"
14:41:47 T:5220 NOTICE: "C:\Users\twig\AppData\Roaming\Kodi\userdata\addon_data\script.steam.launcher\scripts\SteamLauncher-AHK.exe" "E:\Games\Steam\Steam.exe" "C:\Program Files (x86)\Kodi\Kodi.exe" "0" "false" "false" "false"
14:41:47 T:5220 NOTICE: script.steam.launcher: busy dialog started
14:41:52 T:5220 NOTICE: script.steam.launcher: busy dialog stopped after: 5 seconds
When I press alt+tab, I can still see Kodi running in the background (and dimming the screen when there hasn't been any mouse/keyboard input when I play with control pad).
I tried adding MsgBox to these lines but it didn't seem to ever show.
WinWait, ahk_group SteamBPM
if %3%
{
MsgBox Case A
WinMinimize, Kodi ahk_class Kodi
}
else
{
MsgBox Case B
Run, %comspec% /c taskkill /im Kodi.exe,,Hide
Run, %comspec% /c timeout /t 1 && tasklist /nh /fi "imagename eq Kodi.exe" | find /i "Kodi.exe" >nul && (taskkill /f /im Kodi.exe),,Hide
}
If you need any more information, please let me know.
As of about 3 days ago or so the script watching Steam fails to notice when I close Steam. Since nothing has been done on the side of Kodi in regards to updates, at least from what I know, I assume something got changed in a recent Steam update. Since no error messages are generated its a bit hard for me to give you a relevant log file I guess :) But if you want me to test things out, I'm all in.
Running Kodi 19 under Ubuntu 22.04 LTS
I am running kodi on Arch Linux in standalone mode and got steam installed. Steam launches fine with [ startx /usr/bin/steam -bigpicture ].
Launching steam with the launcher from Kodi does nothing. Trying to launch the script manually with [ . steam-launch.sh "/usr/bin/steam" "/usr/bin/kodi" "1" "false" "false" "false" ] command results in the following errors:
bash: $'\r': command not found
bash: $'\r': command not found
bash: steam-launch.sh: line 16: syntax error near unexpected token $'in\r'' 'ash: steam-launch.sh: line 16:
case "$(uname -s)" in
Tried older version of the add-on with no change. What could be the issue?
While my systems default locale is de_DE.UTF-8, the steam launcher uses the locale POSIX. This causes the game Divinity Original Sin to crash with "Failed to create dir" with some saved game in the savegames folder that uses German Umlauts, e.g. "Der Spielplatz des Häuters".
I can workaround this by adding this line to .kodi/userdata/addon_data/script.steam.launcher/scripts/steam-launcher.sh
right at the start of the script:
export LC_ALL=de_DE.UTF-8
I have no Idea why steam-launcher uses the POSIX locale instead of the system default. But this did work before updating the machine to debian 11/bullseye. That version enforced python 3 and removed python 2 - it might be related.
After launching in Big Picture mode, steam then immediately drops back out to desktop when the new friends list appears. Suppressing the list works when launching steam manually with "steam -bigpicture -nochatui -nofriendsui". Any chance of getting your launcher updated to accommodate this?
Everything works fine on Linux, unless I select "Minimize Big Picture", at which point I am unable to go back to it via the script. I'm unsure if this is an actual issue, or whether it simply isn't able to detect the already present Steam Big Picture process in order to bring it back to focus.
Is it not possible, or am I experiencing a problem?
Thanks
Thanks for this great plugin, I've been using it for years with Kodi Leia :)
I downloaded and installed the patched version of this addon from here: https://forum.kodi.tv/showthread.php?tid=157499&pid=2956167#pid2956167
From what I understand from that forum thread, this should work for Kodi Matrix... But it's not, at least for me.
Script logs:
2020-12-27 15:34:16.855 T:165086 DEBUG <general>: script.steam.launcher: ****Running Steam-Launcher v3.5.0....
2020-12-27 15:34:16.855 T:165086 DEBUG <general>: script.steam.launcher: running on osAndroid, osOsx, osLinux, osWin: False False True False
2020-12-27 15:34:16.855 T:165086 DEBUG <general>: script.steam.launcher: System text encoding in use: utf-8
2020-12-27 15:34:16.855 T:165086 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-12-27 15:34:16.856 T:165086 DEBUG <general>: script.steam.launcher: usr scripts are set to be checked for updates...
2020-12-27 15:34:16.856 T:165086 DEBUG <general>: script.steam.launcher: usr scripts are not set to be deleted, running version check
2020-12-27 15:34:16.856 T:165086 DEBUG <general>: script.steam.launcher: sys "steam.launcher.script.revision=": 017
2020-12-27 15:34:16.856 T:165086 DEBUG <general>: script.steam.launcher: usr "steam.launcher.script.revision=": 017
2020-12-27 15:34:16.856 T:165086 DEBUG <general>: script.steam.launcher: userdata script are up to date
2020-12-27 15:34:16.856 T:165086 DEBUG <general>: script.steam.launcher: skipping deleting userdata scripts, option disabled: delUserScriptSett = false
2020-12-27 15:34:16.856 T:165086 DEBUG <general>: script.steam.launcher: script file already exists, skipping copy to userdata: /home/kidlike/.kodi/userdata/addon_data/script.steam.launcher/scripts/steam-launcher.sh
2020-12-27 15:34:16.868 T:165086 DEBUG <general>: script.steam.launcher: wmctrl present, checking if a window manager is running...
2020-12-27 15:34:16.882 T:165086 DEBUG <general>: script.steam.launcher: A window manager is running...
2020-12-27 15:34:16.893 T:165086 DEBUG <general>: script.steam.launcher: xdotool present...
2020-12-27 15:34:16.894 T:165086 DEBUG <general>: script.steam.launcher: running program file check, option is enabled: filePathCheck = true
2020-12-27 15:34:16.894 T:165086 DEBUG <general>: script.steam.launcher: Steam executable exists /usr/bin/steam
2020-12-27 15:34:16.894 T:165086 DEBUG <general>: script.steam.launcher: Xbmc executable exists /usr/bin/kodi
2020-12-27 15:34:16.896 T:165086 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: a bytes-like object is required, not 'str'
Traceback (most recent call last):
File "/home/kidlike/.kodi/addons/script.steam.launcher/default.py", line 2, in <module>
import resources.main
File "/home/kidlike/.kodi/addons/script.steam.launcher/resources/main.py", line 389, in <module>
makeScriptExec()
File "/home/kidlike/.kodi/addons/script.steam.launcher/resources/main.py", line 110, in makeScriptExec
if '\r\n' in open(scriptPath,'rb').read():
TypeError: a bytes-like object is required, not 'str'
-->End of Python script error report<--
Versions:
$ kodi --version
19.0-BETA2 (18.9.821) Git:20201207-nogitfound Media Center Kodi
$ dnf info kodi
Installed Packages
Name : kodi
Version : 19.0
Release : 0.8.20201207git8cc9e80.fc33
Architecture : x86_64
Size : 71 M
Source : kodi-19.0-0.8.20201207git8cc9e80.fc33.src.rpm
Repository : @System
From repo : rpmfusion-free-updates
Summary : Media center
URL : http://www.kodi.tv/
License : GPLv2+ and GPLv3+ and LGPLv2+ and BSD and MIT
Description : Kodi is a free cross-platform media-player jukebox and entertainment hub.
: Kodi can play a spectrum of of multimedia formats, and featuring playlist,
: audio visualizations, slideshow, and weather forecast functions, together
: third-party plugins.
$ inxi -S
System: Kernel: 5.9.15-200.fc33.x86_64 x86_64 bits: 64 Desktop: KDE Plasma 5.20.4
Distro: Fedora release 33 (Thirty Three)
hi
i was trying to install the steam-launcher via the zip file to day here in gentoo
but getting the error that xbmc does not find python-2.7.19.i am on kodi-19.0_beta1
and have build it with python 3,7.
regards hedmo
Version: 3.41
Issue: Im trying to run Steam launcher from my "Games" menu (Aeon MQ8 skin). The launcher automatically shows in "Game add-ons", but trying to run it brings "Failed to play game - This game isn't compatible with any available emulators". Opening a context menu and clicking "Play" also doesn't work - same error. Only going to Informations in context menu and clicking "Run" from there launches Steam.
This is odd behaviour, it would suggest that "Game add-ons" is made to contain only actual emulator games, but other gaming addons installed on my setup (Internet Archive Game Launcher and Rom Collection Browser) are also showing up in Games->Game add-ons and work perfectly fine.
When I exit steam, another kodi instance is started. It doesn't seem to matter what the setting for "Quit Kodi" is (yes/no/ask), they all seem to behave the same.
Meaning, if I enter/exit steam several times, I end up with several instances of kodi running.
I think I noticed this when upgrading to Kodi 18 (Fedora 29, Kodi 18 rc3).
I verified this on a fresh install of the add-on on a different machine as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.