mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-04-20 00:45:51 +09:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ee2b95384 | ||
|
|
d610a980f8 |
@@ -1,4 +1,4 @@
|
|||||||
project('gsr-ui', ['c', 'cpp'], version : '1.7.6', default_options : ['warning_level=2', 'cpp_std=c++17'], subproject_dir : 'depends')
|
project('gsr-ui', ['c', 'cpp'], version : '1.7.7', default_options : ['warning_level=2', 'cpp_std=c++17'], subproject_dir : 'depends')
|
||||||
|
|
||||||
add_project_arguments('-D_FILE_OFFSET_BITS=64', language : ['c', 'cpp'])
|
add_project_arguments('-D_FILE_OFFSET_BITS=64', language : ['c', 'cpp'])
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ datadir = get_option('datadir')
|
|||||||
gsr_ui_resources_path = join_paths(prefix, datadir, 'gsr-ui')
|
gsr_ui_resources_path = join_paths(prefix, datadir, 'gsr-ui')
|
||||||
|
|
||||||
add_project_arguments('-DGSR_UI_VERSION="' + meson.project_version() + '"', language: ['c', 'cpp'])
|
add_project_arguments('-DGSR_UI_VERSION="' + meson.project_version() + '"', language: ['c', 'cpp'])
|
||||||
add_project_arguments('-DGSR_FLATPAK_VERSION="5.8.0"', language: ['c', 'cpp'])
|
add_project_arguments('-DGSR_FLATPAK_VERSION="5.8.2"', language: ['c', 'cpp'])
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
meson.project_name(),
|
meson.project_name(),
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "gsr-ui"
|
name = "gsr-ui"
|
||||||
type = "executable"
|
type = "executable"
|
||||||
version = "1.7.6"
|
version = "1.7.7"
|
||||||
platforms = ["posix"]
|
platforms = ["posix"]
|
||||||
|
|
||||||
[lang.cpp]
|
[lang.cpp]
|
||||||
|
|||||||
@@ -512,7 +512,7 @@ namespace gsr {
|
|||||||
hide();
|
hide();
|
||||||
|
|
||||||
if(notification_process > 0) {
|
if(notification_process > 0) {
|
||||||
kill(notification_process, SIGKILL);
|
kill(notification_process, SIGINT);
|
||||||
int status;
|
int status;
|
||||||
if(waitpid(notification_process, &status, 0) == -1) {
|
if(waitpid(notification_process, &status, 0) == -1) {
|
||||||
perror("waitpid failed");
|
perror("waitpid failed");
|
||||||
@@ -1700,7 +1700,7 @@ namespace gsr {
|
|||||||
notification_args[arg_index++] = nullptr;
|
notification_args[arg_index++] = nullptr;
|
||||||
|
|
||||||
if(notification_process > 0) {
|
if(notification_process > 0) {
|
||||||
kill(notification_process, SIGKILL);
|
kill(notification_process, SIGINT);
|
||||||
int status = 0;
|
int status = 0;
|
||||||
waitpid(notification_process, &status, 0);
|
waitpid(notification_process, &status, 0);
|
||||||
}
|
}
|
||||||
@@ -1828,8 +1828,6 @@ namespace gsr {
|
|||||||
result += std::to_string(seconds) + " second" + (seconds == 1 ? "" : "s");
|
result += std::to_string(seconds) + " second" + (seconds == 1 ? "" : "s");
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "to duration string: %f, %d, %d, %d\n", duration_sec, seconds, minutes, hours);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user