Git Product home page Git Product logo

Comments (9)

Sandmann79 avatar Sandmann79 commented on May 24, 2024

There is no need for that.
You can create one script, that executes some commands, than starts the browser and executes some commands afterwards.

As example:
#!/bin/sh
(Commands)
/usr/bin/google-chrome --kiosk $1
(Commands)

from xbmc.

mase76 avatar mase76 commented on May 24, 2024

from xbmc.

Sandmann79 avatar Sandmann79 commented on May 24, 2024

If you disable remote control in advanced settings, Kodi should not catch the lirc cmds. (If i am not wrong)

from xbmc.

mase76 avatar mase76 commented on May 24, 2024

I only want to disable LIRC temporarely during the browser is open.
I did not find a way to do this from outside of kodi.
Maybe you could use parts from here:
https://github.com/AddonScriptorDE/plugin.program.chrome.launcher/pull/4/files?diff=split

from xbmc.

Sandmann79 avatar Sandmann79 commented on May 24, 2024

You can disable lirc outside from kodi with folling command:
/usr/bin/kodi-send -a "LIRC.Stop"
and enable with
/usr/bin/kodi-send -a "LIRC.Start"

from xbmc.

mase76 avatar mase76 commented on May 24, 2024

from xbmc.

Sandmann79 avatar Sandmann79 commented on May 24, 2024

The commands above doesn't work?

from xbmc.

mase76 avatar mase76 commented on May 24, 2024

I have built Kodi from source on Debian Jessie. The command you mean is a small python
program. LIRC.stop disabled the remote, but LIRC.Start did not enable it again. There was
no error, neither in the commandline, not in the log.
A small C++ program linked against xbmcclient did the job. Maybe a bug in the python module?
My Kodi works as expected now. So if you don't want to build in LIRC disable / enable, you can
close this issue.
Otherwise here is the piece of code I wrote. You can use it like the python program.

#include "xbmcclient.h"
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>

int main(int argc, char **argv)
{
CAddress my_addr; // Address => localhost on 9777
int sockfd = socket(AF_INET, SOCK_DGRAM, 0);
if (sockfd < 0)
{
printf("Error creating socket\n");
return -1;
}

my_addr.Bind(sockfd);

CXBMCClient Client;
Client.SendACTION(argv[1]);

CPacketBYE bye;
bye.Send(sockfd, my_addr);
}

from xbmc.

Sandmann79 avatar Sandmann79 commented on May 24, 2024

Thanks for explaining that, i didn't know that's a python app.
But it's strange that is not working, because it does the same like your program.

However, i close this issue.

from xbmc.

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.