Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximperconf
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
ximperconf
Commits
e876aae1
Verified
Commit
e876aae1
authored
Mar 03, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hyprland/module: restore missing modules in info listing
parent
6a86d9d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
manager.go
hyprland/manager.go
+23
-0
No files found.
hyprland/manager.go
View file @
e876aae1
...
@@ -405,6 +405,29 @@ func (m *HyprlandManager) GetModulesList(filter string) []HyprModule {
...
@@ -405,6 +405,29 @@ func (m *HyprlandManager) GetModulesList(filter string) []HyprModule {
for
_
,
name
:=
range
m
.
UserModules
{
for
_
,
name
:=
range
m
.
UserModules
{
if
!
seen
[
name
]
{
if
!
seen
[
name
]
{
allModules
=
append
(
allModules
,
name
)
allModules
=
append
(
allModules
,
name
)
seen
[
name
]
=
true
}
}
// Модули из source-строк конфига (файл удалён, но строка осталась)
userPrefix
:=
"~"
+
strings
.
TrimPrefix
(
m
.
GetModuleDir
(
true
),
m
.
Home
)
+
"/"
sysPrefix
:=
m
.
GetModuleDir
(
false
)
+
"/"
for
_
,
src
:=
range
m
.
Sources
{
var
name
string
switch
{
case
strings
.
HasPrefix
(
src
.
Path
,
userPrefix
)
&&
strings
.
HasSuffix
(
src
.
Path
,
".conf"
)
:
name
=
strings
.
TrimSuffix
(
strings
.
TrimPrefix
(
src
.
Path
,
userPrefix
),
".conf"
)
case
strings
.
HasPrefix
(
src
.
Path
,
sysPrefix
)
&&
strings
.
HasSuffix
(
src
.
Path
,
".conf"
)
:
name
=
strings
.
TrimSuffix
(
strings
.
TrimPrefix
(
src
.
Path
,
sysPrefix
),
".conf"
)
default
:
continue
}
if
strings
.
Contains
(
name
,
"/"
)
{
continue
}
if
!
seen
[
name
]
{
allModules
=
append
(
allModules
,
name
)
seen
[
name
]
=
true
}
}
}
}
...
...
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