LINUX.ORG.RU

flatpak не добавляет ярлык для приложения на рабочий стол?

 , , , ,


0

1

Создал такой ярлык. Inkscape устанавливал из под рута.

Возможно баги?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927907

https://github.com/flatpak/flatpak/issues/533

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon=mate-panel-launcher
Icon[en_US]=mate-panel-launcher
Exec=/usr/bin/flatpak run org.inkscape.Inkscape
Name[en_US]=Inkscape
Name=Inkscape

при запуске такое

root@debian:/home/grovekeeper/Desktop# ./Inkscape.desktop
./Inkscape.desktop: line 1: [Desktop: command not found
./Inkscape.desktop: line 7: run: command not found
root@debian:/home/grovekeeper/Desktop# 

вот такое при запуске org.inkscape.Inkscape.desktop

root@debian:~/.local/share/flatpak/exports/share/applications# ./org.inkscape.Inkscape.desktop
./org.inkscape.Inkscape.desktop: line 1: [Desktop: command not found
./org.inkscape.Inkscape.desktop: line 11: ca@valencia: syntax error: invalid arithmetic operator (error token is "@valencia")
./org.inkscape.Inkscape.desktop: line 36: kok@latin: syntax error: invalid arithmetic operator (error token is "@latin")
./org.inkscape.Inkscape.desktop: line 37: ks@aran: syntax error: invalid arithmetic operator (error token is "@aran")
./org.inkscape.Inkscape.desktop: line 38: ks@deva: syntax error: invalid arithmetic operator (error token is "@deva")
./org.inkscape.Inkscape.desktop: line 43: mni@beng: syntax error: invalid arithmetic operator (error token is "@beng")
./org.inkscape.Inkscape.desktop: line 54: `Name[sat@deva]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 54: ञेनेल: command not found
./org.inkscape.Inkscape.desktop: line 55: `Name[sat]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 55: ᱧᱮᱱᱮᱞ: command not found
./org.inkscape.Inkscape.desktop: line 57: sd@deva: syntax error: invalid arithmetic operator (error token is "@deva")
./org.inkscape.Inkscape.desktop: line 60: sr@latin: syntax error: invalid arithmetic operator (error token is "@latin")
./org.inkscape.Inkscape.desktop: line 67: `Name[ur]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 67: اسكیپ: command not found
./org.inkscape.Inkscape.desktop: line 72: `GenericName[ar]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 72: الرسومات: command not found
./org.inkscape.Inkscape.desktop: line 73: `GenericName[as]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 73: গ্ৰাফিক্স: command not found
./org.inkscape.Inkscape.desktop: line 74: `GenericName[be]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 74: вэктарнай: command not found
./org.inkscape.Inkscape.desktop: line 75: `GenericName[bg]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 75: за: command not found
./org.inkscape.Inkscape.desktop: line 76: `GenericName[bn_BD]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 76: গ্রাফিক্স: command not found
./org.inkscape.Inkscape.desktop: line 77: `GenericName[br]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 77: kevregadoù: command not found
./org.inkscape.Inkscape.desktop: line 78: `GenericName[brx]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 78: ग्राफिक्स: command not found
./org.inkscape.Inkscape.desktop: line 79: `GenericName[ca]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 79: de: command not found
./org.inkscape.Inkscape.desktop: line 80: `GenericName[ca@valencia]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 80: de: command not found
./org.inkscape.Inkscape.desktop: line 81: `GenericName[cs]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 81: vektorové: command not found
./org.inkscape.Inkscape.desktop: line 82: `GenericName[da]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 82: til: command not found
./org.inkscape.Inkscape.desktop: line 84: `GenericName[doi]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 84: ग्राफिक्स: command not found
./org.inkscape.Inkscape.desktop: line 85: `GenericName[el]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 85: διανυσματικών: command not found
./org.inkscape.Inkscape.desktop: line 86: `GenericName[en_GB]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 86: Graphics: command not found
./org.inkscape.Inkscape.desktop: line 87: `GenericName[es]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 87: de: command not found
./org.inkscape.Inkscape.desktop: line 88: `GenericName[eu]': not a valid identifier
./org.inkscape.Inkscape.desktop: line 88: bektorialen: command not found
./org.inkscape.Inkscape.desktop: line 90: unexpected EOF while looking for matching `''
./org.inkscape.Inkscape.desktop: line 306: syntax error: unexpected end of file
root@debian:~/.local/share/flatpak/exports/share/applications# 



Последнее исправление: grovekeeper (всего исправлений: 6)

Ответ на: комментарий от grovekeeper

Ты уже сделал. Его надо запускать с рабочего стола или ещё как-то, как обрабатывает desktop environment, а не из командной строки.

AVRS ★★
()
Ответ на: комментарий от grovekeeper

Если надо из командной строки, то надо делать shell-скрипт. Что-то вроде:

#/bin/sh
/usr/bin/flatpak run org.inkscape.Inkscape
AVRS ★★
()
Ответ на: комментарий от AVRS
grovekeeper@debian:~/Desktop$ #/bin/sh
grovekeeper@debian:~/Desktop$ /usr/bin/flatpak run org.inkscape.Inkscape

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/grovekeeper/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

error: app/org.inkscape.Inkscape/x86_64/master not installed
grovekeeper@debian:~/Desktop$ 

grovekeeper
() автор топика

если надо запускать desktop-файлы из командной строки, то есть такая утилита, dex. Ищи ее в репах своего дистра.

Lrrr ★★★★★
()
Ответ на: комментарий от grovekeeper

Если так, то у тебя какой-то сбой. Потому что я проверил только что на CentOS 8.3, поставил от root во flatpak VLC — и всё работает нормально, значок меню приложений появился и запускается от пользователя.

Vsevolod-linuxoid ★★★★★
()
Ответ на: комментарий от Vsevolod-linuxoid

только что поставил єтот Дебиан, єто первое приложение которое я установил

grovekeeper
() автор топика
Ответ на: комментарий от Vsevolod-linuxoid

так?

grovekeeper@debian:~$ export XDG_DATA_DIRS=/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
/usr/share/mate:/home/grovekeeper/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
grovekeeper@debian:~$ 
grovekeeper
() автор топика
Последнее исправление: grovekeeper (всего исправлений: 1)
Ответ на: комментарий от Vsevolod-linuxoid
grovekeeper@debian:~/Desktop$ echo $XDG_DATA_DIRS
/usr/share/mate:/home/grovekeeper/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
grovekeeper@debian:~/Desktop$ 
grovekeeper@debian:~/Desktop$ ./Inkscape.desktop
./Inkscape.desktop: line 1: [Desktop: command not found
./Inkscape.desktop: line 7: run: command not found

grovekeeper@debian:~/Desktop$ ./org.inkscape.Inkscape
error: app/org.inkscape.Inkscape/x86_64/stable not installed

grovekeeper@debian:~/Desktop$ 

grovekeeper@debian:~/Desktop$ flatpak run org.inkscape.Inkscape
error: app/org.inkscape.Inkscape/x86_64/master not installed
grovekeeper@debian:~/Desktop$ 

запускается только из-под рута

grovekeeper
() автор топика
Последнее исправление: grovekeeper (всего исправлений: 3)
Ответ на: комментарий от Vsevolod-linuxoid

Дебиан 10 и МАТЕ

переставляю флтпак под юзером, оно все сначала качает и ставит? почему? под рутом уже же установлено.

grovekeeper
() автор топика
Последнее исправление: grovekeeper (всего исправлений: 1)
Ответ на: комментарий от Vsevolod-linuxoid

Под юзером все заработало. А можно ли удалить флатпак под рутом? Он независимо от юзера установился? Что бы место не занимал.

grovekeeper
() автор топика
Последнее исправление: grovekeeper (всего исправлений: 1)
Ответ на: комментарий от grovekeeper

Потому что под root пишется в одни директории, а под пользователем — в другие.

Vsevolod-linuxoid ★★★★★
()
Ответ на: комментарий от Vsevolod-linuxoid

Ясно!) Спасибо за помощь!)

То есть по идее тот флтпак, что под юзером не заденет если я будут удаляьт тот, что под рутом?

grovekeeper
() автор топика
Ответ на: комментарий от Vsevolod-linuxoid

странно? єто почему? уже нету. Є то как?

root@debian:/# flatpak run org.inkscape.Inkscape 
error: app/org.inkscape.Inkscape/x86_64/master not installed
root@debian:/# 

grovekeeper
() автор топика
Ответ на: комментарий от Vsevolod-linuxoid
  1. Я установил флатпак под рутом

  2. Установил Инкскейп из флтпак под рутом

  3. Установил Инкскейп из флтпак под юзером

  4. Инкскейп под рутом исчез, а под юзером остался

grovekeeper
() автор топика
Ответ на: комментарий от antianon

Да, это по виндовому. Но как еще обновить path'ы глобально (а не для одного терминала)? Я читал, что никак. Надо bash перезапустить, а это наверное значит и иксы.

antianon
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.