nautilus/set_trusted.sh
Luciano Santos 3f424ebdd9 Accepting request 638618 from home:xiaoguang_wang:branches:GNOME:Factory
- Update set_trusted.desktop and set_trusted.sh: Move
  set_trusted.desktop file to /etc/skel/.config/autostart
  (bsc#1103523 bsc#1107854).

OBS-URL: https://build.opensuse.org/request/show/638618
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/nautilus?expand=0&rev=299
2018-09-27 23:55:41 +00:00

14 lines
230 B
Bash

#!/bin/bash
DIR=$HOME/Desktop
for f in $(ls $DIR)
do
gio set -t string $DIR/$f "metadata::trusted" yes
done
if [ -f $HOME/.config/autostart/set_trusted.desktop ]; then
rm $HOME/.config/autostart/set_trusted.desktop
fi