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
8a96948e
Commit
8a96948e
authored
Jun 15, 2022
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed notification trying to set icon from invalid .desktop file
parent
75e7363f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
notification.vala
src/notification/notification.vala
+5
-2
No files found.
src/notification/notification.vala
View file @
8a96948e
...
@@ -440,9 +440,12 @@ namespace SwayNotificationCenter {
...
@@ -440,9 +440,12 @@ namespace SwayNotificationCenter {
if
(
param
.
desktop_entry
!=
null
)
{
if
(
param
.
desktop_entry
!=
null
)
{
string
entry
=
param
.
desktop_entry
;
string
entry
=
param
.
desktop_entry
;
entry
=
entry
.
replace
(
".desktop"
,
""
);
entry
=
entry
.
replace
(
".desktop"
,
""
);
var
entry_info
=
new
DesktopAppInfo
(
DesktopAppInfo
entry_info
=
new
DesktopAppInfo
(
"%s.desktop"
.
printf
(
entry
));
"%s.desktop"
.
printf
(
entry
));
icon
=
entry_info
.
get_icon
();
// Checks if the .desktop file actually exists or not
if
(
entry_info
is
DesktopAppInfo
)
{
icon
=
entry_info
.
get_icon
();
}
}
}
if
(
icon
!=
null
)
{
if
(
icon
!=
null
)
{
img
.
set_from_gicon
(
icon
,
icon_size
);
img
.
set_from_gicon
(
icon
,
icon_size
);
...
...
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