Skip to content

Commit

Permalink
[update] : Use dirname for label
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Dec 27, 2020
1 parent b59df15 commit 6cfab4b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions alterlinux-gtk-bookmarks/alterlinux-gtk-bookmarks
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,18 @@ init() {

source "${HOME}/.config/user-dirs.dirs"

output "file://${XDG_DOCUMENTS_DIR} Documents"
output "file://${XDG_DOWNLOAD_DIR} Downloads"
output "file://${XDG_MUSIC_DIR} Music"
output "file://${XDG_PICTURES_DIR} Pictures"
output "file://${XDG_VIDEOS_DIR} Videos"
init_dirs=(
"${XDG_DOCUMENTS_DIR}"
"${XDG_DOWNLOAD_DIR}"
"${XDG_MUSIC_DIR}"
"${XDG_PICTURES_DIR}"
"${XDG_VIDEOS_DIR}"
)

local dir
for dir in "${init_dirs[@]}"; do
output "file://${dir} $(basename "${dir}")"
done
}


Expand Down

0 comments on commit 6cfab4b

Please sign in to comment.