Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
workaround for mate-terminal; manjaro/desktop-settings#120
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Landauer committed May 9, 2018
1 parent 9dcd667 commit 879bb9b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bin/desktop-items.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ fi
if [[ -f /usr/bin/manjaro-architect ]]; then
install -Dm755 $src/manjaro-architect.desktop \
$xdg/manjaro-architect.desktop

# workaround for mate-terminal; https://github.com/manjaro/desktop-settings/issues/120
if [[ $DESKTOP_SESSION == "mate" ]]; then
sed -i "s/^Exec.*/Exec=mate-terminal -e 'sudo \/usr\/bin\/setup'/; s/Terminal.*/Terminal=false/" $xdg/manjaro-architect.desktop
fi
fi

if [[ -f "$src/manjaro-documentation.desktop" ]]; then
Expand All @@ -49,10 +54,8 @@ if [[ -f "$src/hexchat.desktop" ]]; then
fi

# workaround for glib trash bug (https://bugzilla.gnome.org/show_bug.cgi?id=748248)

userid=$(id -u $USER)

if [ ! -d "/.Trash-$userid" ]; then
sudo mkdir -p /.Trash-$userid/{expunged,files,info}
sudo chown -R $userid /.Trash-$userid
sudo mkdir -p /.Trash-$userid/{expunged,files,info}
sudo chown -R $userid /.Trash-$userid
fi

0 comments on commit 879bb9b

Please sign in to comment.