mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-07 15:19:55 +09:00
Make plasmashell check work in flatpak
This commit is contained in:
4
TODO
4
TODO
@@ -222,3 +222,7 @@ Support vaapi rotation. Support for it is added in mesa here: https://gitlab.fre
|
|||||||
|
|
||||||
Replay (and recording?) fails to save properly sometimes (especially for long videos). This is noticable with mp4 files since they get corrupt and become unplayable.
|
Replay (and recording?) fails to save properly sometimes (especially for long videos). This is noticable with mp4 files since they get corrupt and become unplayable.
|
||||||
The entire video does seem to get saved (it's a large video file) and it seems to have the correct headers but it's not playable.
|
The entire video does seem to get saved (it's a large video file) and it seems to have the correct headers but it's not playable.
|
||||||
|
|
||||||
|
Make it possible to save a shorter replay clip remotely. Maybe implement ipc first, to then also allow starting recording/stream while a replay is running.
|
||||||
|
|
||||||
|
Add an option to pass http headers when streaming. Some streaming services require streaming keys to be passed in a http header instead of in the url as a parameter.
|
||||||
@@ -3007,7 +3007,14 @@ static AudioDeviceData create_application_audio_audio_input(const MergedAudioInp
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static bool is_kde_plasma_version_greater_than_6_1_90() {
|
static bool is_kde_plasma_version_greater_than_6_1_90() {
|
||||||
FILE *f = popen("plasmashell -v 2> /dev/null", "r");
|
const bool inside_flatpak = getenv("FLATPAK_ID") != NULL;
|
||||||
|
const char *cmd = nullptr;
|
||||||
|
if(inside_flatpak)
|
||||||
|
cmd = "flatpak-spawn --host -- plasmashell -v 2> /dev/null";
|
||||||
|
else
|
||||||
|
cmd = "plasmashell -v 2> /dev/null";
|
||||||
|
|
||||||
|
FILE *f = popen(cmd, "r");
|
||||||
if(!f)
|
if(!f)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user