Path in a program link not as in terminal

This forum is dedicated to testing early releases and cauldron : Howtos, tips, tricks and user global feedback and thoughts...

Helpful tip :
For bugs tracking we use : https://bugs.mageia.org = The Mageia Bug Tracker
In this bug tracker you'll find already reported bugs and you'll be able to report those you have found....

Path in a program link not as in terminal

Postby morgano » Jun 9th, '15, 10:31

If I in KDE terminal su to root i can just type fstrim and it executes.

But when I on KDE desktop create a program shortcut, and set it to execute as root in a terminal, upon execution it do not find fstrim unless i write the full path /usr/sbin/fstrim .

I have a feeling this is a bug ; I think KDE terminal should have same environment whether started directly or by program link.
But no idea where to set it against. KDE upstream?
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1490
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Path in a program link not as in terminal

Postby doktor5000 » Jun 9th, '15, 11:30

I don't think that's a bug, rather a wrong expectation. All shortcuts/desktop files have the full path to the respective binary.
For more details see http://standards.freedesktop.org/deskto ... 01s06.html
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Path in a program link not as in terminal

Postby ozky » Jun 9th, '15, 11:55

Just enable fstrim.timer it's provided by systemd and it will trim automatically all drives support trim.
https://wiki.archlinux.org/index.php/So ... md_service
Image
Mageia user
User avatar
ozky
 
Posts: 581
Joined: Jul 2nd, '11, 08:48
Location: Nakkila Finland

Re: Path in a program link not as in terminal

Postby morgano » Jun 14th, '15, 22:22

OK thanks so no bug, just need to be specific :)

Thanks ozky, i will try fstrim timer later
I used on my workstation cron to call a script.
My laptops i want to have doing system cleaning work only when i tell them to.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1490
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden

Re: Path in a program link not as in terminal

Postby doktor5000 » Jun 14th, '15, 22:25

More details for periodic fstrim at https://wiki.archlinux.org/index.php/So ... dic_fstrim
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Testing : Alpha, Beta, RC and Cauldron

Who is online

Users browsing this forum: No registered users and 1 guest