Skip to content

Commit

Permalink
#169: Fixed issue with shortcut preferences in Ubuntu 14.04
Browse files Browse the repository at this point in the history
  • Loading branch information
gornostal committed Oct 15, 2017
1 parent 5a9124a commit 617f5b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/preferences/src/components/pages/EditShortcut.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default {
},
methods: {
expandUserPath (path) {
return path.startsWith('~') ? path.replace('~', this.prefs.env.user_home, 1) : path
return path.indexOf('~') === 0 ? path.replace('~', this.prefs.env.user_home, 1) : path
},
selectIcon () {
jsonp('prefs://show/file-browser', {type: 'image', name: shortcutIconEventName})
Expand Down
2 changes: 1 addition & 1 deletion data/preferences/src/components/pages/Shortcuts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default {
})
},
expandUserPath (path) {
return path.startsWith('~') ? path.replace('~', this.prefs.env.user_home, 1) : path
return path.indexOf('~') === 0 ? path.replace('~', this.prefs.env.user_home, 1) : path
},
edit (item) {
this.$router.push({path: 'edit-shortcut', query: item})
Expand Down

0 comments on commit 617f5b9

Please sign in to comment.