[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Always wayland !
[Thread Prev] | [Thread Next]
- Subject: Re: Always wayland !
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Sun, 26 May 2024 16:33:41 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Sun, 26 May 2024 at 16:12, Philippe Valarcher <philippe.valarcher@xxxxxxx> wrote: > Le dimanche 26 mai 2024 à 14:46 +0100, Bruce Steers a écrit : > > > > On Sun, 26 May 2024 at 14:41, Philippe Valarcher < > philippe.valarcher@xxxxxxx> wrote: > > Good morning, > How to get around this necessary sentence: > > $plugvis = new mediacontrol ($mp, $tipoplug [siind]) > > Who is planting without info (is not an error) under Wayland? > Under Xorg it works as announced in the documentation, under Wayland no > question of creating a viewing area on the fly of anything. > > The rest of the code > > $mp.video.visualization = $plugvis > > Another question that would allow a display of the display problem under > Wayland: > Is it possible to recover information from the display system under which > a program is launched, Wayland or Xorg to be able to carry out a test? > > > I just do agree with that, it really sucks ! > Anyway tried this : > sT4 = "$XDG_SESSION_TYPE" > Shell "echo " & sT4 To sT3 > > If MDebut.sT3 = "wayland" & gb.NewLine Then $plugVis = Null > > It works only for audio not for video. > > Thanks! > You're welcome. It would be easier to use Env[] than the shell to get the environment variable. If Env["XDG_SESSION_TYPE"] = "wayland" Then $plugVis = Null but I would think safer to use Desktop.Platform as $XDG_SESSION_TYPE variable would probably not work if run as root. If Desktop.Platform == "wayland" Then $plugVis = Null Respects BruceS
Always wayland ! | Philippe Valarcher <philippe.valarcher@xxxxxxx> |
Re: Always wayland ! | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: Always wayland ! | Philippe Valarcher <philippe.valarcher@xxxxxxx> |