This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Help with Launcher custom commands

Tags: None
(comma "," separated)
User avatar
ryanvade
Registered Member
Posts
40
Karma
0
OS

Help with Launcher custom commands

Sun May 19, 2013 3:15 am
Hello everyone. I am using KDE 4.10.3 on Archlinux. Because I am using dual screen with NVIIDA fullscreenhack for flash player is needed. So I installed it and can use the following command to use it..
Code: Select all
env LD_PRELOAD=/build/fullscreenhack/libfshack-npapi.so firefox-nightly

And everything is fine. But if I edit the launcher for firefox-nightly it does not work. Is there something special I need to use?
User avatar
Hans
Administrator
Posts
3304
Karma
24
OS
How exactly do you edit the launcher? You can post the contents of the .desktop file here.


Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.

10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts
User avatar
ryanvade
Registered Member
Posts
40
Karma
0
OS
I am using KDE menu editor. Putting the above in "command".
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The "command" field is not interpreted by a shell, so the "env LD_PRELOAD" will not work.
Instead, you'll need to write something along these lines into a script file, and set the command of the menu entry to be this script.
Make sure you retain any %u or %U entries, and their respective quotes when making this change.

Code: Select all
export LD_PRELOAD=/build/fullscreenhack/libfshack-npapi.so
firefox-nightly $@


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]