Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tuner-displays
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
tuner-displays
Commits
18cf5dd4
Verified
Commit
18cf5dd4
authored
Jun 15, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backends: ignore missing monitor config files
parent
d75acee1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
hyprland-backend.vala
src/backends/hyprland-backend.vala
+5
-1
niri-backend.vala
src/backends/niri-backend.vala
+5
-1
No files found.
src/backends/hyprland-backend.vala
View file @
18cf5dd4
...
...
@@ -183,9 +183,13 @@ namespace TunerDisplays {
private
static
Gee
.
HashMap
<
string
,
SavedMonitor
>
read_saved_monitors
()
{
var
monitors
=
new
Gee
.
HashMap
<
string
,
SavedMonitor
>();
var
path
=
monitors_path
();
if
(!
FileUtils
.
test
(
path
,
FileTest
.
EXISTS
))
return
monitors
;
try
{
string
content
;
if
(!
FileUtils
.
get_contents
(
monitors_path
()
,
out
content
))
if
(!
FileUtils
.
get_contents
(
path
,
out
content
))
return
monitors
;
foreach
(
var
line
in
content
.
split
(
"\n"
))
{
...
...
src/backends/niri-backend.vala
View file @
18cf5dd4
...
...
@@ -138,9 +138,13 @@ namespace TunerDisplays {
private
static
Gee
.
HashMap
<
string
,
SavedMonitor
>
read_saved_monitors
()
{
var
monitors
=
new
Gee
.
HashMap
<
string
,
SavedMonitor
>();
var
path
=
monitors_path
();
if
(!
FileUtils
.
test
(
path
,
FileTest
.
EXISTS
))
return
monitors
;
try
{
string
content
;
if
(!
FileUtils
.
get_contents
(
monitors_path
()
,
out
content
))
if
(!
FileUtils
.
get_contents
(
path
,
out
content
))
return
monitors
;
string
current_name
=
""
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment