<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>38397</bug_id>
          
          <creation_ts>2020-04-27 01:08:54 +0300</creation_ts>
          <short_desc>Неправильные права на файл /etc/profile.d/flatpak.sh</short_desc>
          <delta_ts>2024-01-27 04:03:07 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>flatpak</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=41625</see_also>
    
    <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=49197</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denis Pynkin">dans</reporter>
          <assigned_to name="Yuri N. Sedunov">aris</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>antohami</cc>
    
    <cc>aris</cc>
    
    <cc>cas</cc>
    
    <cc>gbophuk_alt</cc>
    
    <cc>lav</cc>
    
    <cc>na0m6xny</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>189473</commentid>
    <comment_count>0</comment_count>
    <who name="Denis Pynkin">dans</who>
    <bug_when>2020-04-27 01:08:54 +0300</bug_when>
    <thetext>Отсутствует execution bit для /etc/profile.d/flatpak.sh файла, поэтому не подхватывается bash-ем, а переменная XDG_DATA_DIRS не устанавливается корректно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189491</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2020-04-27 14:21:19 +0300</bug_when>
    <thetext>Зря. В Sisyphus то же самое: без бита выполнения.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189494</commentid>
    <comment_count>2</comment_count>
    <who name="Denis Pynkin">dans</who>
    <bug_when>2020-04-27 15:37:09 +0300</bug_when>
    <thetext>Собрал и установил себе в P9 bubblewrap и flatpak из сизифа.
С установленным битом -- в баше подхватывается, но KDE при загрузке вылетает с segfault.

Без установленного бита -- KDE грузится как всегда, XDG_DATA_DIRS установлен в дефолт:
```
$ echo $XDG_DATA_DIRS
/usr/share/kf5:/usr/share:/var/lib/flatpak/exports/share
```
XDG_DATA_HOME отсустсвует.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189495</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2020-04-27 16:18:09 +0300</bug_when>
    <thetext>Если что, 250707 EPERM #2 p9 bubblewrap.git=0.4.1-alt1 flatpak.git=1.6.3-alt1 srpm=flatpak-builder-1.0.10-alt1.1.src.rpm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189518</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2020-04-28 16:11:59 +0300</bug_when>
    <thetext>Установил flatpak в p9 из задания 250707.

При запуске любых приложений возникает ошибка &quot;bwrap: execvp gnome-calculator: No such file or directory&quot;:

$ flatpak run org.gnome.Calculator

Note that the directories 

&apos;/var/lib/flatpak/exports/share&apos;
&apos;/home/test/.local/share/flatpak/exports/share&apos;

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.

bwrap: execvp gnome-calculator: No such file or directory

Без задания (т.е. на текущем flatpak в p9) поведение аналогичное.

Проверял на ALT Workstation K 9.0 (RC2) и ALT Workstation 9.0

Содержимое переменной XDG_DATA_DIRS:
1. На KDE: /usr/share/kf5:/usr/share:/var/lib/flatpak/exports/share
2. На MATE: пусто</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198264</commentid>
    <comment_count>5</comment_count>
    <who name="gBopHuk">gbophuk_alt</who>
    <bug_when>2021-04-28 16:32:46 +0300</bug_when>
    <thetext>*** Bug 39920 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201952</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2021-08-22 23:10:12 +0300</bug_when>
    <thetext>Я тут увидел, что генератор неправильно запакован.
Надо переместить /usr/lib/systemd/system-environment-generators/60-flatpak-system-only
в /lib/systemd/system-environment-generators.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201957</commentid>
    <comment_count>7</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2021-08-23 11:05:02 +0300</bug_when>
    <thetext>(Ответ для Alexey Shabalin на комментарий #6)
&gt; Я тут увидел, что генератор неправильно запакован.
&gt; Надо переместить
&gt; /usr/lib/systemd/system-environment-generators/60-flatpak-system-only
&gt; в /lib/systemd/system-environment-generators.

Предлагаемый /lib/systemd/system-environment-generators должен принадлежать systemd? Как и 

$ rpm -qf /lib/systemd/system-generators
systemd-249.3-alt1.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201965</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2021-08-23 13:50:27 +0300</bug_when>
    <thetext>(Ответ для Yuri N. Sedunov на комментарий #7)
&gt; (Ответ для Alexey Shabalin на комментарий #6)
&gt; &gt; Я тут увидел, что генератор неправильно запакован.
&gt; &gt; Надо переместить
&gt; &gt; /usr/lib/systemd/system-environment-generators/60-flatpak-system-only
&gt; &gt; в /lib/systemd/system-environment-generators.
&gt; 
&gt; Предлагаемый /lib/systemd/system-environment-generators должен принадлежать
&gt; systemd? Как и 
&gt; 
&gt; $ rpm -qf /lib/systemd/system-generators
&gt; systemd-249.3-alt1.x86_64

Да, будет принадлежать. Готовлю обновление.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>240659</commentid>
    <comment_count>9</comment_count>
    <who name="AlekseyViS">na0m6xny</who>
    <bug_when>2024-01-26 03:45:53 +0300</bug_when>
    <thetext>Note that the directories 

&apos;/var/lib/flatpak/exports/share&apos;
&apos;/home/anamevi/.local/share/flatpak/exports/share&apos;

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.

Ошибка возникает только в wayland сессии kde plasma 5 на Alt Regular Kde. На X11 проблем нет.

Мешает тем, что флатпак приложения не добавляются в меню kde (пропадают оттуда при переключении на wayland) и не отбражаются в папке /home/anamevi/.local/share/flatpak/
При этом приложения спокойно запускаются коммандой flatpak run, настраиваются через настройки kde и flatseal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>240670</commentid>
    <comment_count>10</comment_count>
    <who name="AlekseyViS">na0m6xny</who>
    <bug_when>2024-01-26 09:36:27 +0300</bug_when>
    <thetext>Поставил GNOME, второй оболочкой, там проблемы нет</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>240674</commentid>
    <comment_count>11</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2024-01-26 11:46:07 +0300</bug_when>
    <thetext>(Ответ для AlekseyViS на комментарий #10)
&gt; Поставил GNOME, второй оболочкой, там проблемы нет

Выясните почему именно &quot;в wayland сессии kde plasma 5 на Alt Regular Kde&quot; не работает и повесте на kde. Эта бага давно исправлена.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>240682</commentid>
    <comment_count>12</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2024-01-26 13:25:07 +0300</bug_when>
    <thetext>(Ответ для Yuri N. Sedunov на комментарий #11)
&gt; (Ответ для AlekseyViS на комментарий #10)
&gt; &gt; Поставил GNOME, второй оболочкой, там проблемы нет
&gt; 
&gt; Выясните почему именно &quot;в wayland сессии kde plasma 5 на Alt Regular Kde&quot; не
&gt; работает и повесте на kde. Эта бага давно исправлена.

Всё верно. В kde5 wayland не выполняются скрипты из /etc/profile.d/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>240730</commentid>
    <comment_count>13</comment_count>
    <who name="AlekseyViS">na0m6xny</who>
    <bug_when>2024-01-27 03:53:41 +0300</bug_when>
    <thetext>На kde plasma 5 проблема решилась установкой sddm вместо lightdm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>240731</commentid>
    <comment_count>14</comment_count>
    <who name="AlekseyViS">na0m6xny</who>
    <bug_when>2024-01-27 04:03:07 +0300</bug_when>
    <thetext>Решение помогло найти https://bugzilla.altlinux.org/40910</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>