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
b65a08bb
Unverified
Commit
b65a08bb
authored
Sep 27, 2022
by
Erik Reider
Committed by
GitHub
Sep 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add /usr/local/etc/xdg/swaync/ as default fallback path for config and CSS files (#168)
* Added /usr/local/etc/xdg/swaync/ as default fallback path * Added comments to clarify its purpose
parent
27217450
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
functions.vala
src/functions.vala
+8
-2
No files found.
src/functions.vala
View file @
b65a08bb
...
@@ -95,7 +95,10 @@ namespace SwayNotificationCenter {
...
@@ -95,7 +95,10 @@ namespace SwayNotificationCenter {
public
static
string
get_style_path
(
owned
string
?
custom_path
,
public
static
string
get_style_path
(
owned
string
?
custom_path
,
bool
only_system
=
false
)
{
bool
only_system
=
false
)
{
string
[]
paths
=
{};
string
[]
paths
=
{
// Fallback location. Specified in postinstall.py
"/usr/local/etc/xdg/swaync/style.css"
};
if
(
custom_path
!=
null
&&
custom_path
.
length
>
0
)
{
if
(
custom_path
!=
null
&&
custom_path
.
length
>
0
)
{
// Replaces the home directory relative path with a absolute path
// Replaces the home directory relative path with a absolute path
if
(
custom_path
.
get
(
0
)
==
'~'
)
{
if
(
custom_path
.
get
(
0
)
==
'~'
)
{
...
@@ -130,7 +133,10 @@ namespace SwayNotificationCenter {
...
@@ -130,7 +133,10 @@ namespace SwayNotificationCenter {
}
}
public
static
string
get_config_path
(
owned
string
?
custom_path
)
{
public
static
string
get_config_path
(
owned
string
?
custom_path
)
{
string
[]
paths
=
{};
string
[]
paths
=
{
// Fallback location. Specified in postinstall.py
"/usr/local/etc/xdg/swaync/config.json"
};
if
(
custom_path
!=
null
&&
custom_path
.
length
>
0
)
{
if
(
custom_path
!=
null
&&
custom_path
.
length
>
0
)
{
// Replaces the home directory relative path with a absolute path
// Replaces the home directory relative path with a absolute path
if
(
custom_path
.
get
(
0
)
==
'~'
)
{
if
(
custom_path
.
get
(
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