Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
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
ximper-shell-notification-center
Commits
e498068e
Commit
e498068e
authored
Dec 20, 2023
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added back support for non-URI image-paths for notifications. Fixes #356
parent
605f1955
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
notification.vala
src/notification/notification.vala
+10
-0
No files found.
src/notification/notification.vala
View file @
e498068e
...
...
@@ -680,8 +680,18 @@ namespace SwayNotificationCenter {
var
img_path_exists
=
File
.
new_for_uri
(
param
.
image_path
??
""
).
query_exists
();
if
(
param
.
image_path
!=
null
&&
!
img_path_exists
)
{
// Check if it's not a URI
img_path_exists
=
File
.
new_for_path
(
param
.
image_path
??
""
).
query_exists
();
}
var
app_icon_exists
=
File
.
new_for_uri
(
app_icon_uri
??
""
).
query_exists
();
if
(
app_icon_uri
!=
null
&&
!
img_path_exists
)
{
// Check if it's not a URI
app_icon_exists
=
File
.
new_for_path
(
app_icon_uri
??
""
).
query_exists
();
}
// Get the image CSS corner radius in pixels
int
radius
=
0
;
...
...
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