Skip to content

Set the device name from the CEC_OSD_NAME environment variable#62

Open
christos-kakris wants to merge 3 commits intotrainman419:masterfrom
christos-kakris:set-device-name
Open

Set the device name from the CEC_OSD_NAME environment variable#62
christos-kakris wants to merge 3 commits intotrainman419:masterfrom
christos-kakris:set-device-name

Conversation

@christos-kakris
Copy link

I'm not a C++ programmer so I struggled with the correct way to achieve what I needed. So I've gone with the approach of an environment variable to set the device name in the initialisation code. I hope this is okay.

@retsyx
Copy link

retsyx commented May 6, 2024

For your consideration, I slightly simplified this commit.

I made it silently truncate long names, replaced the snprintf() with a strncpy() and use the system defined LIBCEC_OSD_NAME_SIZE to restrict the length of the name.

The change is here: master...retsyx:python-cec:master

@ilar
Copy link

ilar commented Feb 14, 2026

@retsyx Hello!

I'm trying to use python-cec for a project of mine, and running into the issue of the project simply being unmaintained. I'm planning on creating my own fork specifically for my project (as that seems to be the best solution), and I was wondering if I may include your Adapter code within it under the same GPLv2 license.

The fork is located at https://gitlab.com/spease/ironcast-cec and the purpose of it is provide CEC control for IronCast, which is a project whose goal is to provide a chromecast-esque open source experience for casting using DLNA.

Thanks for your time!

@retsyx
Copy link

retsyx commented Feb 14, 2026

@ilar, sure, go ahead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments