Giter Site home page Giter Site logo

Linux Auto Setup about scrcpy-gui HOT 5 CLOSED

hammy275 avatar hammy275 commented on July 24, 2024
Linux Auto Setup

from scrcpy-gui.

Comments (5)

hammy275 avatar hammy275 commented on July 24, 2024

Auto setup has been added for Ubuntu--based systems (Ubuntu, Xubuntu, Linux Mint, etc.).

from scrcpy-gui.

hammy275 avatar hammy275 commented on July 24, 2024

What I just added should fix things for Debian-based systems! I'm going to see if I can find some way to detect if we're running Crostini, because Crostini doesn't play nice with running PySimpleGUI as root and we need to alert the user through GUI whether or not to install adb, scrcpy, etc.

from scrcpy-gui.

hammy275 avatar hammy275 commented on July 24, 2024

By check for the presence of the CrosAdapta theme, I was able to detect Crostini. Without running a certain command, Crostini can't run GUI apps as root, so if we fail to connect to a display and we're running under Crostini, we can throw an error accordingly to run the hack (since calling it from our Python script fails).

from scrcpy-gui.

hammy275 avatar hammy275 commented on July 24, 2024

At the moment, Debian-based systems can install adb and scrcpy through apt and snap respectively. Problematically, many systems don't have snap. The current implementation is to install snap, however, there should be an optional method to install adb and scrcpy through direct downloading. This would also allow support to vastly expand to pretty much any Linux distro!

NOTE: Installations through things such as apt, snap, etc. will be used if the package manager is already installed on the system since they can keep scrcpy and adb up to date.

from scrcpy-gui.

hammy275 avatar hammy275 commented on July 24, 2024

It looks to be direct downloading would require compiling scrcpy, which would just move back the problem to downloading the tools for compilation. Maybe at some point, I'll let scrcpy-gui compile scrcpy, but for now, I'm going to leave it as is. This commit adds (UNTESTED!) support for installing adb and scrcpy through pacman and yum, so hopefully that should cover enough operating systems that most of them will support automatic setup out of the box. I'm going to close this issue now, it's been long-standing, and functionality was (hopefully added correctly) in the previously mentioned commit.

from scrcpy-gui.

Related Issues (15)

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.