Skip to content

Commit

Permalink
v3.5.1
Browse files Browse the repository at this point in the history
[fix] (Linux) Get list of installed applications
#95
  • Loading branch information
stenya committed Jan 20, 2022
1 parent c08193a commit 5f830ad
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions daemon/oshelpers/linux/applist/applist.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ func GetAppsList(evXDG_DATA_DIRS string, evXDG_CURRENT_DESKTOP string, evHOME st
// parse arguments
HOME = evHOME
XDG_DATA_DIRS = strings.Split(evXDG_DATA_DIRS, ":")
if len(XDG_DATA_DIRS)==1 && XDG_DATA_DIRS[0]=="" {
XDG_DATA_DIRS = []string{}
}

for _, deskval := range strings.Split(evXDG_CURRENT_DESKTOP, ":") {
XDG_CURRENT_DESKTOP[deskval] = struct{}{}
}
Expand Down
5 changes: 4 additions & 1 deletion daemon/oshelpers/linux/icotheme/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ type Theme struct {
func GetTheme(themeName string, evHOME string, evXDG_DATA_DIRS string) (Theme, error) {
// parse arguments
XDG_DATA_DIRS := strings.Split(evXDG_DATA_DIRS, ":")
if len(XDG_DATA_DIRS)==1 && XDG_DATA_DIRS[0]=="" {
XDG_DATA_DIRS = []string{}
}
if len(XDG_DATA_DIRS) == 0 {
XDG_DATA_DIRS = append(XDG_DATA_DIRS, "/usr/local/share/")
XDG_DATA_DIRS = append(XDG_DATA_DIRS, "/usr/share/")
Expand Down Expand Up @@ -130,7 +133,7 @@ func readTheme(themeName string, iconsBaseDirs []string) (Theme, error) {
}
}
if len(themeFile) <= 0 {
return Theme{}, fmt.Errorf("theme not fpound")
return Theme{}, fmt.Errorf("theme not found")
}

// reading parents info
Expand Down
4 changes: 2 additions & 2 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ivpn-ui",
"version": "3.5.0",
"version": "3.5.1",
"productName": "IVPN",
"description": "IVPN Client",
"author": "IVPN Limited",
Expand Down
2 changes: 1 addition & 1 deletion ui/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function GetResourcesPath() {
}

export default {
MinRequiredDaemonVer: "3.5.0",
MinRequiredDaemonVer: "3.5.1",

MinimizedUIWidth: 320,
MaximizedUIWidth: 800,
Expand Down

0 comments on commit 5f830ad

Please sign in to comment.