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
d5cac981
Commit
d5cac981
authored
Jul 28, 2024
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check all-lowercase desktop entries
parent
723645eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
notiModel.vala
src/notiModel/notiModel.vala
+8
-2
No files found.
src/notiModel/notiModel.vala
View file @
d5cac981
...
...
@@ -148,8 +148,14 @@ namespace SwayNotificationCenter {
// Try to get the desktop file
string
[]
entries
=
{};
if
(
desktop_entry
!=
null
)
entries
+=
desktop_entry
.
replace
(
".desktop"
,
""
);
if
(
app_name
!=
null
)
entries
+=
app_name
.
replace
(
".desktop"
,
""
);
if
(
desktop_entry
!=
null
)
{
entries
+=
desktop_entry
.
replace
(
".desktop"
,
""
);
entries
+=
desktop_entry
.
down
().
replace
(
".desktop"
,
""
);
}
if
(
app_name
!=
null
)
{
entries
+=
app_name
.
replace
(
".desktop"
,
""
);
entries
+=
app_name
.
down
().
replace
(
".desktop"
,
""
);
}
foreach
(
string
entry
in
entries
)
{
var
app_info
=
new
DesktopAppInfo
(
"%s.desktop"
.
printf
(
entry
));
// Checks if the .desktop file actually exists or not
...
...
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