Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37380528
en ru br
Репозитории ALT

Группа :: Система/Основа
Пакет: beesu

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: beesu-nautilus-scripts-fixes.patch
Скачать


--- beesu-2.7/nautilus-beesu-manager-1.7/nautilus-beesu-manager.scripts-fixes	2013-07-02 11:10:03.532207904 -0400
+++ beesu-2.7/nautilus-beesu-manager-1.7/nautilus-beesu-manager	2013-07-02 11:10:21.025207278 -0400
@@ -9,7 +9,7 @@ then
     exit
 fi
 
-export BEESU_BASE_SCRIPT_FOLDER="$HOME/.gnome2/nautilus-scripts/beesu"
+export BEESU_BASE_SCRIPT_FOLDER="$HOME/.local/share/nautilus/scripts/beesu"
 
 echo -ne "BASE_SCRIPT_FOLDER=$BEESU_BASE_SCRIPT_FOLDER\n"
 
--- beesu-2.7/nautilus-beesu-manager-1.7/libexec/local-launcher.scripts-fixes	2013-07-02 11:10:40.716206575 -0400
+++ beesu-2.7/nautilus-beesu-manager-1.7/libexec/local-launcher	2013-07-02 11:11:32.384204728 -0400
@@ -51,7 +51,7 @@ then
     fi
 else
     beesu_display_error "The script \"$BEESU_SCRIPT_NAME\" at \"$beesu_script_path\" is not installed in this system."
-    src="$HOME/.gnome2/nautilus-scripts/beesu/$BEESU_SCRIPT_NAME"
+    src="$HOME/.local/share/nautilus/scripts/beesu/$BEESU_SCRIPT_NAME"
     if [ -x "$src" ]
     then
         if [ -x "$exe_zenity" ]
@@ -60,7 +60,7 @@ else
             if [ "$?" -ne "1" ]
             then
                 rm -v -f "$src"
-                find "$HOME/.gnome2/nautilus-scripts/beesu/" -type d -print0 | xargs -0 rmdir --ignore-fail-on-non-empty
+                find "$HOME/.local/share/nautilus/scripts/beesu/" -type d -print0 | xargs -0 rmdir --ignore-fail-on-non-empty
                 beesu_display_info "Launcher script \"$src\" uninstalled."
             fi
         fi
--- "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/Execute/Execute Script.scripts-fixes"	2013-07-02 11:11:49.006204134 -0400
+++ "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/Execute/Execute Script"	2013-07-02 11:12:19.219203054 -0400
@@ -8,7 +8,9 @@ then
         quoted=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | 
                  head -n 1 |
                  awk 'BEGIN { FS = "\n" } { printf "\"%s\"", $1 }' | sed -e s#\"\"##)
-        beesu - gnome-terminal --working-directory="$base" -e "$quoted"
+        # beesu - gnome-terminal --working-directory="$base" -e "$quoted"
+        # We now have to place beesu at the end because gnome-terminal throws dbus errors and fails otherwise.
+        gnome-terminal --working-directory="$base" -e "beesu '$quoted'"
     else
         zenity --info --title="Execute Script" --text="I won't run more than one script at once."
     fi
--- "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/Edit with gHex.scripts-fixes"	2013-07-02 11:13:11.616201181 -0400
+++ "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/Edit with gHex"	2013-07-02 11:13:22.123200805 -0400
@@ -4,7 +4,7 @@ if [[ -n "$NAUTILUS_SCRIPT_SELECTED_FILE
 then
     quoted=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | 
              awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
-    beesu - ghex2 "$quoted"
+    beesu - ghex "$quoted"
 fi
 # F12
 /bin/true
--- "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/GNOME Shell Open.scripts-fixes"	2013-07-02 11:13:40.075200163 -0400
+++ "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/GNOME Shell Open"	2013-07-02 11:13:50.828199779 -0400
@@ -3,7 +3,7 @@ if [[ -n "$NAUTILUS_SCRIPT_SELECTED_FILE
 then
     quoted=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | 
              awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
-    beesu - gnome-open "$quoted"
+    beesu - xdg-open "$quoted"
 fi
 # F12
 /bin/true
--- "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/Open Nautilus Here.scripts-fixes"	2013-07-02 11:14:04.847199278 -0400
+++ "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/Open Nautilus Here"	2013-07-02 11:14:17.931198810 -0400
@@ -6,6 +6,6 @@ else
      while [ ! -z "$1" -a ! -d "$base/$1" ]; do shift; done
      dir="$base/$1"
 fi
-beesu - nautilus "$dir"
+beesu - nautilus "'$dir'"
 # F12
 /bin/true
--- "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/Open Terminal Here.scripts-fixes"	2013-07-02 11:14:26.381198508 -0400
+++ "beesu-2.7/nautilus-beesu-manager-1.7/libexec/scripts/Open Terminal Here"	2013-07-02 11:15:16.095196731 -0400
@@ -7,6 +7,8 @@ else
      while [ ! -z "$1" -a ! -d "$base/$1" ]; do shift; done
      dir="$base/$1"
 fi
-beesu - gnome-terminal --working-directory="$dir"
+# beesu - gnome-terminal --working-directory="$dir"
+# We now have to place beesu at the end because gnome-terminal throws dbus errors and fails otherwise.
+gnome-terminal --working-directory="$dir" -e 'beesu sudo -s'
 # F12
 /bin/true
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin