Support the Flatpak path.
Now you can launch your Flatpaks from the I38 menu.
This commit is contained in:
parent
732c2b0240
commit
13ba2b6dee
@ -29,8 +29,9 @@ def read_desktop_files(paths):
|
|||||||
|
|
||||||
userApplicationsPath = Path.home() / '.local/share/applications'
|
userApplicationsPath = Path.home() / '.local/share/applications'
|
||||||
systemApplicationsPath = Path('/usr/share/applications')
|
systemApplicationsPath = Path('/usr/share/applications')
|
||||||
|
userFlatpakApplicationsPath = Path.home() / '.local/share/flatpak/exports/share/applications'
|
||||||
desktopEntries = read_desktop_files([userApplicationsPath, systemApplicationsPath])
|
systemFlatpakApplicationsPath = Path('/var/lib/flatpak/exports/share/applications')
|
||||||
|
desktopEntries = read_desktop_files([userApplicationsPath, systemApplicationsPath, userFlatpakApplicationsPath, systemFlatpakApplicationsPath])
|
||||||
|
|
||||||
# Combine some of the categories
|
# Combine some of the categories
|
||||||
categoryMap = {
|
categoryMap = {
|
||||||
|
Loading…
Reference in New Issue
Block a user