Witaj na Forum Linuxiarzy
Zanim zalogujesz się, by pisać na naszym forum, zapoznaj się z kilkoma zasadami savoir-vivre'u w dziale Administracja.
Wiadomości z problemami zamieszczone w wątku "Przywitaj się" oraz wszelkie reklamy na naszym forum będą usuwane.

Thunar nie widzi napędów zewnętrznych

Zaczęty przez sm, Lipiec 24, 2025, 06:52:21 PM

Poprzedni wątek - Następny wątek

sm

Zainstalowałem Slackware 15.0 xfce.

Problem pojawia się po doinstalowaniu i3-gaps. Konkretnie chodzi o zarządzanie wolumenami i urządzeniami. Wygląda na to, że gvfs jest niedostępny. To informacja pojawiająca się w preferencjach. Nie montuje napędów zewnętrznych typu usb, karta pamięci czy partycje drugiego systemu zainstalowanego na dysku. Nie montuje tzn. w ogóle tych pozycji nie widać w Thunar. Za to pojawiły się takie pozycje jak: pts, shm, home, floppy, proc.
Dodam, że thunar pod xfce zachowuje się normalnie. Ten problem dotyczy i3-wm. Czy przywrócenie tej funkcjonalności w i3 to kwestia braku uprawnień, jakich?

CDeB

Nie używam slackware, ale wygląda na to że gvfs jest dostępne w repo.

Może doinstalowanie rozwiąże problem.

linux4ever

#2
Tu kilka rozwiązań: https://www.linuxquestions.org/questions/slackware-14/thunar-preferences-advanced-it-looks-like-gvfs-is-not-available-4175709791/ https://superuser.com/questions/228261/how-to-properly-start-gvfs-without-gnomehttps://bbs.archlinux.org/viewtopic.php?id=138066

Spróbuj tych rozwiązań.

No i AI podaje:
CytatIn Slackware Linux, Xfce's behavior regarding storage device access and permissions is largely managed through user groups. Specifically, the plugdev and power groups are crucial for handling external devices and power management within the Xfce desktop environment. To ensure full functionality, users should be added to these groups.
Here's a breakdown:

    plugdev Group:
    This group is typically associated with allowing users to mount removable media (like USB drives) and access other external devices.
    power Group:
    This group is essential for power management features, enabling users to control power settings, suspend/hibernate the system, and manage battery levels (if applicable).

Managing Users and Groups:
To add a user to these groups, use the usermod command. For example, to add user myuser to the plugdev group:

sudo usermod -a -G plugdev myuser

And to add them to the power group:

sudo usermod -a -G power myuser

The -a flag adds the user to the group, while -G specifies the group name. After making these changes, the user needs to log out and log back in (or restart) for the group membership to take effect.
"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

sm

Cytat: CDeB w Lipiec 24, 2025, 07:23:46 PMNie używam slackware, ale wygląda na to że gvfs jest dostępne w repo.

Może doinstalowanie rozwiąże problem.
Tak, to wiem i mam zainstalowane. Skoro w sesji xcfe thunar działa poprawnie...

sm

Cytat: linux4ever w Lipiec 24, 2025, 07:27:04 PMTu kilka rozwiązań: https://www.linuxquestions.org/questions/slackware-14/thunar-preferences-advanced-it-looks-like-gvfs-is-not-available-4175709791/ https://superuser.com/questions/228261/how-to-properly-start-gvfs-without-gnomehttps://bbs.archlinux.org/viewtopic.php?id=138066

Spróbuj tych rozwiązań.

No i AI podaje:
CytatIn Slackware Linux, Xfce's behavior regarding storage device access and permissions is largely managed through user groups. Specifically, the plugdev and power groups are crucial for handling external devices and power management within the Xfce desktop environment. To ensure full functionality, users should be added to these groups.
Here's a breakdown:

    plugdev Group:
    This group is typically associated with allowing users to mount removable media (like USB drives) and access other external devices.
    power Group:
    This group is essential for power management features, enabling users to control power settings, suspend/hibernate the system, and manage battery levels (if applicable).

Managing Users and Groups:
To add a user to these groups, use the usermod command. For example, to add user myuser to the plugdev group:

sudo usermod -a -G plugdev myuser

And to add them to the power group:

sudo usermod -a -G power myuser

The -a flag adds the user to the group, while -G specifies the group name. After making these changes, the user needs to log out and log back in (or restart) for the group membership to take effect.
Dzięki za odpowiedź. Ten link, który podałeś:
https://www.linuxquestions.org/questions/slackware-14/thunar-preferences-advanced-it-looks-like-gvfs-is-not-available-4175709791/
to znalazłem już wcześniej, wydaje się być najbardziej sensowny. Inne rozpatrujące problemy thunar'a w xfce niekoniecznie. Przecież problem tyczy jedynie sesji i3, tutaj brak sesji dbus, bo pewnie ona nie startuje albo polkit.
Oto mój .xinitrc
Cytat#!/bin/sh

# Start i3
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
    exec ck-launch-session dbus-launch --exit-with-session /usr/bin/i3
else
    exec i3
fi


if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -x /usr/bin/dbus-run-session ]; then
  exec dbus-run-session -- $0 "$@"
fi

. /etc/X11/xdm/Xsession
a tutaj "wyciąg" z mojego config'u i3. Naprawdę już nie wiem czy coś nie zchrzaniłem w ferworze walki :)
Cytatexec --no-startup-id ibus-autostart

exec --no-startup-id /usr/libexec/at-spi-bus-launcher --launch-immediately         
exec --no-startup-id /usr/lib64/xfce4/notifyd/xfce4-notifyd
exec --no-startup-id /usr/libexec/gvfsd
exec --no-startup-id /usr/share/dbus-1/services/org.gtk.vfs.Daemon.service
exec --no-startup-id /usr/libexec/pam_kwallet_init
exec --no-startup-id /usr/lib/polkit-1/polkit-agent-helper-1
exec --no-startup-id /usr/libexec/polkit-gnome-authentication-agent-1
#exec --no-startup-id sleep 10 && /usr/bin/lxpolkit &
#exec --no-startup-id sleep 10 & /usr/lib/polkit-1/polkitd
exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=secrets
exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=ssh
Do tych grup jestem przypisany:
Cytatusers lp wheel audio video cdrom plugdev power netdev

linux4ever

@sm Może lepiej zainstaluj FUSE do obsługi urządzeń.

Bo jak czytałem gvfs jest z GUI Gnome a slackware ma nie mieć gnome.

I dlatego to nie działa nie wiem ile w tym prawdy.

"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

sm

#6
Wiem że Slackware stroni od gnome, tutaj wiedzie prym KDE a xfce trochę na przyczepkę. Odznaczając w instalatorze systemu kde i tak wraz z xfce instaluje się cała masa pakietów od kde + plasma. Przypuszczam że samo xfce jest powiązane, chcesz czy nie, z bibliotekami kde. Odinstalowując je wyleciał mi sddm.

Wracając do meritum problemu, myślę że nie potrzeba instalować czegokolwiek, przecież funkcjonalność thunara w sesji xfce jest prawidłowa. Po przelogowaniu się na i3 robi się nieciekawie. Moim zdaniem jest to problem z polkitem, który nie przypisuje dostępu do niektórych funkcjonalności. Częściowo udało mi się to zmienić. Włączyłem
Cytatexec --no-startup-id /usr/libexec/gvfsd
oraz
exec --no-startup-id lxpolkit
sbopkg -i udiskie
teraz thunar zaczął montować wolumeny, ale... W dalszym ciągu nie widzi innych partycji nie powiązanych ze slackware. 

linux4ever

#7
Cytat: sm w Lipiec 25, 2025, 07:00:56 PMteraz thunar zaczął montować wolumeny, ale... W dalszym ciągu nie widzi innych partycji nie powiązanych ze slackware.

A masz to ?

CytatGamin is a file and directory monitoring system defined to be a subset
of the FAM (File Alteration Monitor) system.

Wymagane niby do otwierania woluminów  jak to się tam zwie i urządzeń paczka to :gamin-0.1.10-i586-9.txz

Takie same paczki czyli gamin i polkit wymaga Arch Linux XFCE.

Do pobrania z tej strony: https://packages.slackware.com/



"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

sm

#8
Cytat: linux4ever w Lipiec 25, 2025, 09:03:41 PM
Cytat: sm w Lipiec 25, 2025, 07:00:56 PMA masz to ?

Gamin is a file and directory monitoring system defined to be a subset
of the FAM (File Alteration Monitor) system.

Wymagane niby do otwierania woluminów  jak to się tam zwie i urządzeń paczka to :gamin-0.1.10-i586-9.txz

Takie same paczki czyli gamin i polkit wymaga Arch Linux XFCE.

Do pobrania z tej strony: https://packages.slackware.com/
Mam zainstalowane
Cytatslackpkg search gamin
Looking for gamin in package list. Please wait... DONE
The list below shows all packages with name matching "gamin".
[ installed ] - gamin-0.1.10-x86_64-9
a czy to się uruchamia ze środowiskiem graficznym i3?

linux4ever

Cytat: sm w Lipiec 25, 2025, 09:48:20 PMa czy to się uruchamia ze środowiskiem graficznym i3?

Tego nie wiem bo nie znalazłem takiej informacji.

Działa za to z czystym XFCE.
"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

sm

#10
Cytat: linux4ever w Lipiec 26, 2025, 07:19:14 AM
Cytat: sm w Lipiec 25, 2025, 09:48:20 PMa czy to się uruchamia ze środowiskiem graficznym i3?

Tego nie wiem bo nie znalazłem takiej informacji.

Działa za to z czystym XFCE.

Masz rację z xfce nie ma problemu, jego sobie sprokurowałem zmieniając WM na i3, ale pasuje mi ten tiling manager. Instalowałem i3 na każdym systemie, który do tej pory miałem i takich problemów jak w Slackware nie doświadczyłem. Zachciało mi się zainstalować tego old timera wśród linuksów i stwierdzam, że trzeba mieć multum cierpliwości aby ogarnąć system.
Na chwilę obecną doprowadziłem thunara do stanu 80%. Usb i karta pamięci montują się ad-hoc lecz nadal brak kosza w lewym panelu.
Montowanie smartfona załatwiłem w ten sposób:
Cytatmkdir -p /media/android

mkdir -p /media/android
chmod 777 /media/android

vim /etc/fuse.conf
odkomentować lub dodać linię (allowing non-root users )
user_allow_other


Zamontowanie:
jmtpfs -o allow_other /media/android
Device 0 (VID=22b8 and PID=2e82) is a Motorola Moto G (ID2).
Android device detected, assigning default bug flags

Odmontowanie:
bash-5.1$ fusermount -u /media/android
W xfce odbywa się ten proces bez takiej kombinacji ale sęk w tym, że po prostu lubię i3 :)

linux4ever

#11
@sm Z tego co kojarzę kosz na pulpicie to plik desktop linuksowy odpowiednik skrótu.

AI podaje:
CytatTo create a desktop shortcut in Slackware, you'll need to create a .desktop file and place it in your desktop directory. This file acts as a launcher for the application or command you want to execute. You can create this file manually or by copying and modifying an existing one.
Here's a step-by-step guide:

    Create a .desktop file:
        Open a text editor and create a new file (e.g., my_app.desktop).
        Add the following content, replacing the placeholders with your specific details:

Kod

     [Desktop Entry]
     Type=Application
     Name=My Application
     Exec=/path/to/your/executable
     Icon=/path/to/your/icon.png
     Comment=Description of your application

    Type=Application: Specifies that it's an application launcher.

Name: The name that will be displayed on the shortcut.
Exec: The full path to the executable you want to run.
Icon: The path to the icon you want to use for the shortcut.
Comment: A description that appears when you hover over the shortcut.

    Save the file: Save the .desktop file in your desktop directory (usually ~/Desktop/).

Make the file executable:

    Open a terminal and navigate to your desktop directory.

Run the command: chmod +x my_app.desktop

(Optional) Add to the menu: If you want the shortcut to also appear in the application menu, you can copy the .desktop file to /usr/share/applications/.

Alternatively, if you are using a desktop environment with a graphical interface (like KDE or XFCE), you can often right-click on the desktop, select "Create Launcher" or "New Launcher", and then fill in the details in the dialog box

I nie znalazłem ustawień kosza za to te programy:https://slackbuilds.org/repository/15.0/system/pytrash/ i http://slackermedia.info/trashy/

Oraz: https://www.linuxquestions.org/questions/slackware-14/trash-has-disappeared-in-xfce-4175571435/

Cytatuntil you solve trash: trash folder points to ~/.local/share/Trash/files


"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

sm

Zainstalowałem pytrash lecz jest mało wygodny w używaniu.
Cytatpytrash -c
All files and directories from trash will be deleted [yes/No]: yes
Trash cleared
Terminal może wszystko trzeba jednak mieć zacięcie pisarskie. Łatwiej i prościej klinąć ikonę kosza i ..."opróżnij koszt". Może dojdę do tego. Tymczasem dziękuję Tobie za pomoc. Będę walczył dalej...

Accura

Znalezione w sieci gdzieś w czeluściach :)
   
Sprawdź czy masz już zenity:
which zenity
Jeśli nie ma, możesz pobrać pakiet zenity ze SlackBuilds.org:

Wejdź na https://slackbuilds.org/repository/14.2/system/zenity/

Pobierz skrypt i źródła, zbuduj i zainstaluj.

Teraz utwórz skrypt:
#!/bin/bash

zenity --question --title="Opróżnianie kosza" --text="Czy na pewno chcesz opróżnić kosz? Wszystkie pliki zostaną trwale usunięte."

if [ $? -eq 0 ]; then
    pytrash -c
    zenity --info --title="Gotowe" --text="Kosz został opróżniony."
else
    zenity --info --title="Anulowano" --text="Operacja została anulowana."
fi
Zapisz go na pulpicie jako empty_trash_gui.sh, nadaj prawa wykonywalności:
chmod +x ~/Pulpit/empty_trash_gui.shI uruchamiaj klikając lub z terminala.

Jeśli pomoże choć trochę w tej batalii, to będę się cieszył :)
Moje "daily"Dell Latitude 5490 😎 (i5-8350U, 24GB RAM, 500GB NVMe) – robi ssh, robi rsync, nie robi problemów. 
UHD 620 – nie gra, nie szumi, nie wkurza. Idealna. OS: CachyOS (KDE, bo GNOME to nie GUI, tylko test cierpliwości)

pavbaranov

@sm - Mam takie pytanie: czy Ty masz zainstalowane i3 oraz XFCE na tym samym komputerze?
Jeśli opcja pierwsza, to być może nie masz zainstalowanych jakichś zależności gvfs. To ostatnie - wg XFCE powinieneś mieć zainstalowane, by uzyskać porządaną przez Ciebie funkcjonalność.
Nie wiem jak w tej chwili na Slacku, ale niegdyś ich menedżer pakietów nie instalował zależności (ani ich nie sugerował) automatycznie. Jeśli nadal tak jest, to sprawdź sobie czy masz zainstalowane:
listę zależności gvfs
oraz listę sugerowanych zależności, ale tu jest tylko samba, zatem skoro nie korzystasz z tego rozwiązania, to nie jest Ci ona konieczna.
CachyOS (niekiedy mocno zmiksowany z Arch), Plasma (zawsze najnowsza, a niekiedy beta/RC). linux-cachyos.

Zobacz najnowsze wiadomości na forum