Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Kako da symlinkujem Trash

[es] :: Linux :: Kako da symlinkujem Trash

[ Pregleda: 1514 | Odgovora: 10 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Branimir Maksimovic

Član broj: 64947
Poruke: 5534
109.72.51.23



+1064 Profil

icon Kako da symlinkujem Trash09.10.2018. u 07:30 - pre 66 meseci
Elem imam .local na drugom disku a posto je Trash bas tu nece da prebacuje tamo iz nautilusa. I ja lepo symlinkujem na isti disk, hoce sad da prebaci u trash ali nautilus nece da vidi da ima
tamo nesto. Ima li nekog resenja, ili bar kako da prebacim .local/share/Trash na neki drugi dir. Google mi nista nije pomogao.
 
Odgovor na temu

Panta_
Aleksandar Pantić
Kragujevac

Član broj: 214959
Poruke: 790
Via: [es] mailing liste



+162 Profil

icon Re: Kako da symlinkujem Trash09.10.2018. u 09:27 - pre 66 meseci
Da li imaš .Trash-1000 folder na toj particiji?
 
Odgovor na temu

Branimir Maksimovic

Član broj: 64947
Poruke: 5534
82.117.201.26



+1064 Profil

icon Re: Kako da symlinkujem Trash09.10.2018. u 09:33 - pre 66 meseci
Ne. Lokacija je .local/share/Trash za ~
 
Odgovor na temu

djoka_l
Beograd

Član broj: 56075
Poruke: 3445

Jabber: djoka_l


+1462 Profil

icon Re: Kako da symlinkujem Trash09.10.2018. u 10:09 - pre 66 meseci
Ono što te je pitao Panta je da li na SVAKOM disku (fajlsistemu) imaš katalog .Trash-<UID>

Trash mora da bude na SVAKOM fajl sistemu jer se tamo kreiraju hard linkovi koji ne mogu da pokazuju na drugi fajl sistem...
 
Odgovor na temu

Branimir Maksimovic

Član broj: 64947
Poruke: 5534
82.117.201.26



+1064 Profil

icon Re: Kako da symlinkujem Trash09.10.2018. u 10:35 - pre 66 meseci
taj .Trash se kreira samo van /home particije , dok na istoj ga nema. Inace svi obrisani fajlovi idu tacno tamo gde sam symlink-ovao samo
sto nautilus nece da vidi iako ih tamo smesta. Inace .Trash-xxx kreira nautilus cak i na zfs-u ali ni to ne moze da vidi.

 
Odgovor na temu

tuxserbia
Oleg Vučković
urandom
/dev/null
Niš

Član broj: 4094
Poruke: 867

Jabber: tuxserbia@elitesecurity.org
ICQ: 65355850
Sajt: 127.0.0.1


+112 Profil

icon Re: Kako da symlinkujem Trash09.10.2018. u 12:10 - pre 66 meseci
Trebalo bi da se kreira na svakom osim /

Jesi proverio prava čitanje pisanje? Montiran kako? Uz --bind?

Postoji bug koji pominje i btrfs i zfs.


Na kraju, uvek imaš trash-cli :-(
Kako se dele racunarski programi?
Na bagovite (sa greskama) i ispravne (bez gresaka). Ovi drugi su hipoteticki.
***GPL-ovano by @Shadowed

"Ja za email koristim outlook express u virtualnoj mašini, tako da s te strane nijedan linux nije
dorastao XP-u." - pisac
 
Odgovor na temu

Branimir Maksimovic

Član broj: 64947
Poruke: 5534
82.117.201.26



+1064 Profil

icon Re: Kako da symlinkujem Trash09.10.2018. u 12:26 - pre 66 meseci
Ne moze na /home zato sto smesta u pomenuti dir. Ali nije to problem. Znaci kada je .local na istoj particiji nema problema. Problem nastaje kada se .local
prebaci na drugu particiju. Naravno, ne moze da gura u Trash jer bi morao da kopira i sada ne znam resenje za to, a probao sam sa symlinkom.
Znaci nigde nisam nasao kako da kazem gde da smesti Trash, sto bi bilo logicno resenje.
 
Odgovor na temu

tuxserbia
Oleg Vučković
urandom
/dev/null
Niš

Član broj: 4094
Poruke: 867

Jabber: tuxserbia@elitesecurity.org
ICQ: 65355850
Sajt: 127.0.0.1


+112 Profil

icon Re: Kako da symlinkujem Trash09.10.2018. u 12:33 - pre 66 meseci
Jesi probao ručno da napraviš? Ono,

Code:
sudo mkdir .Trash-$UID && sudo chown $USER:$USER .Trash-$UID


Eventualno

Code:
chmod o+w

Kako se dele racunarski programi?
Na bagovite (sa greskama) i ispravne (bez gresaka). Ovi drugi su hipoteticki.
***GPL-ovano by @Shadowed

"Ja za email koristim outlook express u virtualnoj mašini, tako da s te strane nijedan linux nije
dorastao XP-u." - pisac
 
Odgovor na temu

Branimir Maksimovic

Član broj: 64947
Poruke: 5534
82.117.201.26



+1064 Profil

icon Re: Kako da symlinkujem Trash09.10.2018. u 12:40 - pre 66 meseci
Mislis na /home? Probacu kad dodjem kuci.

edit:
nista, nautilus i dalje stavlja u .local/share/Trash...

[Ovu poruku je menjao Branimir Maksimovic dana 09.10.2018. u 19:45 GMT+1]
 
Odgovor na temu

Panta_
Aleksandar Pantić
Kragujevac

Član broj: 214959
Poruke: 790



+162 Profil

icon Re: Kako da symlinkujem Trash09.10.2018. u 20:54 - pre 66 meseci
Možda ovo pomogne:
Citat:
(1) An administrator can create an $topdir/.Trash directory. The permissions on this directories should permit all users who can trash files at all to write in it.; and the “sticky bit” in the permissions must be set, if the file system supports it.

When trashing a file from a non-home partition/device4 , an implementation (if it supports trashing in top directories) MUST check for the presence of $topdir/.Trash.

When preparing a list of all trashed files (for example, to show to the user), an implementation also MUST check for .Trash in all top directories that are known to it.

If this directory is present, the implementation MUST, by default, check for the “sticky bit”. (It MAY provide a way for the administrator, and only the administrator, to disable this checking for a particular top directory, in order to support file systems that do not have the “sticky bit”).

The implementation also MUST check that this directory is not a symbolic link.

If any of these checks fail, the implementation MUST NOT use this directory for either trashing or undeleting files, even if an appropriate $uid directory (see below) already exists in it. Besides, the implementation SHOULD report the failed check to the administrator, and MAY also report it to the user.

The following paragraph applies ONLY to the case when the implementation supports trashing in the top directory, and a $topdir/.Trash exists and has passed the checks:

If the directory exists and passes the checks, a subdirectory of the $topdir/.Trash directory is to be used as the user's trash directory for this partition/device. The name of this subdirectory is the numeric identifier of the current user ($topdir/.Trash/$uid). When trashing a file, if this directory does not exist for the current user, the implementation MUST immediately create it, without any warnings or delays for the user.

(2) If an $topdir/.Trash directory is absent, an $topdir/.Trash-$uid directory is to be used as the user's trash directory for this device/partition. $uid is the user's numeric identifier.

The following paragraph applies ONLY to the case when the implementation supports trashing in the top directory, and a $topdir/.Trash does not exist or has not passed the checks:

When trashing a file, if an $topdir/.Trash-$uid directory does not exist, the implementation MUST immediately create it, without any warnings or delays for the user.

When trashing a file, if this directory does not exist for the current user, the implementation MUST immediately create it, without any warnings or delays for the user.

Notes. If an implementation provides trashing in top directories at all, it MUST support both (1) and (2).

If an implementation does NOT provide trashing in top directories, and does provide the user with some interface to view and/or undelete trashed files, it SHOULD make a “best effort” to show files trashed in top directories (by both methods) to the user, among other trashed files or in a clearly accessible separate way.

When trashing a file, if the method (1) fails at any point — that is, the $topdir/.Trash directory does not exist, or it fails the checks, or the system refuses to create an $uid directory in it — the implementation MUST, by default, fall back to method (2), described below. Except for the case when $topdir/.Trash fails the checks, the fallback must be immediate, without any warnings or delays. The implementation MAY, however, provide a way for the administrator to disable (2) completely.

If both (1) and (2) fail (that is, no $topdir/.Trash directory exists, and an attempt to create $topdir/.Trash-$uid fails), the implementation MUST either trash the file into the user's “home trash” or refuse to trash it. The choice between these options can be pre-determined, or it can depend on the particular situation (for example, “no trashing of very large files”). However, if an implementation refuses to trash a file after a user action that generally causes trashing, it MUST clearly warn the user that the trashing has failed. It MUST NOT erase the file without user confirmation.

For showing trashed files, implementations SHOULD support (1) and (2) at the same time (that is, if both $topdir/.Trash/$uid and $topdir/.Trash-$uid are present, it should list trashed files from both of them).


https://specifications.freedes...ash-spec/trashspec-latest.html
 
Odgovor na temu

Branimir Maksimovic

Član broj: 64947
Poruke: 5534
109.72.51.23



+1064 Profil

icon Re: Kako da symlinkujem Trash10.10.2018. u 04:06 - pre 66 meseci
Ne vredi jedino u .local/share/Trash stavlja i to je to.
 
Odgovor na temu

[es] :: Linux :: Kako da symlinkujem Trash

[ Pregleda: 1514 | Odgovora: 10 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.