История изменений
Исправление i_gnatenko_brain, (текущая версия) :
На будущее не имей привязки к home директории.
start.sh должен быть в той же директории, где и папка bin.
держи патч:
diff -uNr Minecraft.orig/minecraft.desktop Minecraft/minecraft.desktop
--- Minecraft.orig/minecraft.desktop 2013-05-12 08:11:44.000000000 +0400
+++ Minecraft/minecraft.desktop 2013-05-12 13:16:31.790176324 +0400
@@ -1,11 +1,9 @@
-#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Minecraft
Comment=Minecraft launcher
-Icon=jockey-kde
+Icon=utilities-terminal
Encoding=UTF-8
Type=Application
Terminal=true
-Exec=sh /home/meklon/Games/Minecraft_patched/start.sh
+Exec=/home/brain/Minecraft/Minecraft_patched/start.sh
Categories=Game;
-OnlyShowIn=KDE;
diff -uNr Minecraft.orig/Minecraft_patched/start.sh Minecraft/Minecraft_patched/start.sh
--- Minecraft.orig/Minecraft_patched/start.sh 2013-05-12 08:06:42.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh 2013-05-12 13:24:57.282211830 +0400
@@ -1,5 +1,2 @@
#!/bin/bash
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username &
-disown
-
+read -e -p "Enter you nick: " tmp && echo $tmp | { read username; nohup java -cp "`dirname $0`/bin/*" -Djava.library.path="`dirname $0`/bin/natives/" net.minecraft.client.Minecraft $username; }
diff -uNr Minecraft.orig/Minecraft_patched/start.sh.old Minecraft/Minecraft_patched/start.sh.old
--- Minecraft.orig/Minecraft_patched/start.sh.old 2013-05-12 06:53:08.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh.old 1970-01-01 03:00:00.000000000 +0300
@@ -1,2 +0,0 @@
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username
Исправление i_gnatenko_brain, :
На будущее не имей привязки к home директории.
start.sh должен быть в той же директории, где и папка bin.
держи патч:
diff -uNr Minecraft.orig/minecraft.desktop Minecraft/minecraft.desktop
--- Minecraft.orig/minecraft.desktop 2013-05-12 08:11:44.000000000 +0400
+++ Minecraft/minecraft.desktop 2013-05-12 13:16:31.790176324 +0400
@@ -1,11 +1,9 @@
-#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Minecraft
Comment=Minecraft launcher
-Icon=jockey-kde
+Icon=utilities-terminal
Encoding=UTF-8
Type=Application
Terminal=true
-Exec=sh /home/meklon/Games/Minecraft_patched/start.sh
+Exec=/home/brain/Minecraft/Minecraft_patched/start.sh
Categories=Game;
-OnlyShowIn=KDE;
diff -uNr Minecraft.orig/Minecraft_patched/start.sh Minecraft/Minecraft_patched/start.sh
--- Minecraft.orig/Minecraft_patched/start.sh 2013-05-12 08:06:42.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh 2013-05-12 13:24:57.282211830 +0400
@@ -1,5 +1,2 @@
#!/bin/bash
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username &
-disown
-
+read -e -p "Enter you nick: " tmp && echo $tmp | { read username; nohup java -cp "`dirname $0`/bin/*" -Djava.library.path="`dirname $0`/bin/natives/" net.minecraft.client.Minecraft $username; }
diff -uNr Minecraft.orig/Minecraft_patched/start.sh.old Minecraft/Minecraft_patched/start.sh.old
--- Minecraft.orig/Minecraft_patched/start.sh.old 2013-05-12 06:53:08.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh.old 1970-01-01 03:00:00.000000000 +0300
@@ -1,2 +0,0 @@
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username
Исправление i_gnatenko_brain, :
На будущее не имей привязки к home директории.
start.sh должен быть в той же директории, где и папка bin.
держи патч:
diff -uNr Minecraft.orig/minecraft.desktop Minecraft/minecraft.desktop
--- Minecraft.orig/minecraft.desktop 2013-05-12 08:11:44.000000000 +0400
+++ Minecraft/minecraft.desktop 2013-05-12 13:16:31.790176324 +0400
@@ -1,11 +1,9 @@
-#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Minecraft
Comment=Minecraft launcher
-Icon=jockey-kde
+Icon=utilities-terminal
Encoding=UTF-8
Type=Application
Terminal=true
-Exec=sh /home/meklon/Games/Minecraft_patched/start.sh
+Exec=/home/brain/Minecraft/Minecraft_patched/start.sh
Categories=Game;
-OnlyShowIn=KDE;
diff -uNr Minecraft.orig/Minecraft_patched/start.sh Minecraft/Minecraft_patched/start.sh
--- Minecraft.orig/Minecraft_patched/start.sh 2013-05-12 08:06:42.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh 2013-05-12 13:24:57.282211830 +0400
@@ -1,5 +1,2 @@
#!/bin/bash
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username &
-disown
-
+read -e -p "Enter you nick: " tmp && echo $tmp | { read username; nohup java -cp "`dirname $0`/bin/*" -Djava.library.path="`dirname $0`/bin/natives/" net.minecraft.client.Minecraft $username; }
diff -uNr Minecraft.orig/Minecraft_patched/start.sh.old Minecraft/Minecraft_patched/start.sh.old
--- Minecraft.orig/Minecraft_patched/start.sh.old 2013-05-12 06:53:08.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh.old 1970-01-01 03:00:00.000000000 +0300
@@ -1,2 +0,0 @@
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username
Исправление i_gnatenko_brain, :
На будущее не имей привязки к home директории.
start.sh должен быть в той же директории, где и папка bin.
держи патч:
diff -uNr Minecraft.orig/minecraft.desktop Minecraft/minecraft.desktop
--- Minecraft.orig/minecraft.desktop 2013-05-12 08:11:44.000000000 +0400
+++ Minecraft/minecraft.desktop 2013-05-12 13:16:31.790176324 +0400
@@ -1,11 +1,9 @@
-#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Minecraft
Comment=Minecraft launcher
-Icon=jockey-kde
+Icon=utilities-terminal
Encoding=UTF-8
Type=Application
Terminal=true
-Exec=sh /home/meklon/Games/Minecraft_patched/start.sh
+Exec=/home/brain/Minecraft/Minecraft_patched/start.sh
Categories=Game;
-OnlyShowIn=KDE;
diff -uNr Minecraft.orig/Minecraft_patched/start.sh Minecraft/Minecraft_patched/start.sh
--- Minecraft.orig/Minecraft_patched/start.sh 2013-05-12 08:06:42.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh 2013-05-12 13:24:57.282211830 +0400
@@ -1,5 +1,2 @@
#!/bin/bash
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username &
-disown
-
+read -e -p "Enter you nick: " tmp && echo $tmp | { read username; nohup java -cp "`dirname $0`/bin/*" -Djava.library.path="`dirname $0`/bin/natives/" net.minecraft.client.Minecraft $username; }
diff -uNr Minecraft.orig/Minecraft_patched/start.sh.old Minecraft/Minecraft_patched/start.sh.old
--- Minecraft.orig/Minecraft_patched/start.sh.old 2013-05-12 06:53:08.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh.old 1970-01-01 03:00:00.000000000 +0300
@@ -1,2 +0,0 @@
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username
Исходная версия i_gnatenko_brain, :
На будущее не имей привязки к home директории.
start.sh должен быть в той же директории, где и папка bin.
держи патч:
diff -uNr Minecraft.orig/minecraft.desktop Minecraft/minecraft.desktop
--- Minecraft.orig/minecraft.desktop 2013-05-12 08:11:44.000000000 +0400
+++ Minecraft/minecraft.desktop 2013-05-12 13:16:31.790176324 +0400
@@ -1,11 +1,9 @@
-#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Minecraft
Comment=Minecraft launcher
-Icon=jockey-kde
+Icon=utilities-terminal
Encoding=UTF-8
Type=Application
Terminal=true
-Exec=sh /home/meklon/Games/Minecraft_patched/start.sh
+Exec=/home/brain/Minecraft/Minecraft_patched/start.sh
Categories=Game;
-OnlyShowIn=KDE;
diff -uNr Minecraft.orig/Minecraft_patched/start.sh Minecraft/Minecraft_patched/start.sh
--- Minecraft.orig/Minecraft_patched/start.sh 2013-05-12 08:06:42.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh 2013-05-12 13:24:57.282211830 +0400
@@ -1,5 +1,2 @@
#!/bin/bash
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username &
-disown
-
+read -e -p «Enter you nick: » tmp && echo $tmp | { read username; nohup java -cp «`dirname $0`/bin/*» -Djava.library.path=«`dirname $0`/bin/natives/» net.minecraft.client.Minecraft $username; }
diff -uNr Minecraft.orig/Minecraft_patched/start.sh.old Minecraft/Minecraft_patched/start.sh.old
--- Minecraft.orig/Minecraft_patched/start.sh.old 2013-05-12 06:53:08.000000000 +0400
+++ Minecraft/Minecraft_patched/start.sh.old 1970-01-01 03:00:00.000000000 +0300
@@ -1,2 +0,0 @@
-echo -n 'Введите свой ник: ' && read username
-java -cp 'bin/*' -Djava.library.path='bin/natives/' net.minecraft.client.Minecraft $username