![]() |
how to make .desktop file/script
I made this .desktop file so I can kill CuteTube, OVP and Firefox because they run background after I close em.
Code:
[Desktop Entry] Code:
Exec=killall cutetube killall openmediaplayer killall fennec Then another thing how to open conversation with desktop shortcut without going to messaging and then pressing conversation from right down corner. Thanks. |
Re: how to make .desktop file
try write script and exec it
for exsample: Code:
#!blah-blah-blah |
Re: how to make .desktop file
Or maybe do something like:
Code:
Exec=killall cutetube && killall openmediaplayer && killall fennec Don't forget to make the script file executable though (chmod +x [scriptfile]) on the command-line, or some file managers might let you change it without having to go to the command-line, I wouldn't know. |
Re: how to make .desktop file
freedesktop.org is helpful.
freedesktop.org .desktop file Manual |
Re: how to make .desktop file
Code:
Exec=killall cutetube; killall openmediaplayer; killall fennec |
Re: how to make .desktop file
someone know a one command to close all opened windows like a button on the multitasking screen when you do long press -> close all ?
|
Re: how to make .desktop file
Quote:
If not, there you have a good idea for an app ;) |
Re: how to make .desktop file
Quote:
I think its time to learn to do script files. See you after Google :D ;) |
Re: how to make .desktop file
Mikkosssss,
In your exec field you can have it as Exec=/home/user/kill.sh with kill.sh contents being: Code:
#!/bin/sh |
Re: how to make .desktop file
Not an expert still my two cents
try Exec=killall openmediaplayer cutetube fennec pulseaudio please add pulseaudio only when media player is playing or you want to close it |
Re: how to make .desktop file
Cant find any help and http://harmattan-dev.nokia.com/ doesnt work??
Any other pages where you learn simple harmattan developer stuff. =S Because I want learn these things for future :D |
Re: how to make .desktop file
Quote:
Harmattan-dev is down again. Welcome to the world of Nokia. You can have a look at the Freedesktop XDG reference documentation to get an idea of things (and check against your n9). Worked for me and for BWizz :) |
Re: how to make .desktop file
Quote:
Thanks |
Re: how to make .desktop file
Quote:
But if theres way to add message displayed on script I will use script. |
Re: how to make .desktop file
Quote:
http://talk.maemo.org/showthread.php?t=84624 |
Re: how to make .desktop file
Hi,
I'm trying to put a script together for a desktopfile that turns standby screen on/off. The idea is to have an icon in home screen that switches between the regular standby screen with clock, notifications and billboard and a blank black one. In settings>phone>display> there is an option to turn standby screen off, but I wonder if it is really disabling it or just sets it to blank. A notification via dbus (like tortoisedoc suggested) to display if its active or passive would be nice. As you can guess from my name, I'm not into Linux at all. :o So far I only have some breadcrumbs of code, so please help putting this right. Here's what I have in mind: LPSswitch.desktop: Code:
[Desktop Entry] Code:
#!/bin/sh Thank you. |
Re: how to make .desktop file
Win7Mac,
Are you sure that's the process name? Get your process name and the below is something you can use; in the below example PROCESS_NAME should be replaced with your process name: Code:
SERVICE=PROCESS_NAME |
Re: how to make .desktop file
Quote:
From here. |
Re: how to make .desktop file
Quote:
|
Re: how to make .desktop file
Quote:
:o |
Re: how to make .desktop file/script
Don't forget to chmod your script file
|
Re: how to make .desktop file/script
^ Yeah... but first I need the correct process to kill. If standby screen really has to be terminated.
I mean, its still there, its just blank, no? Can somebody verify what exactly happens when you turn standby screen on/off in settings>phone>display? - Knowing what this command exactly does would be very helpfull. E: nevermind, thedead already put everything together, awesome: http://talk.maemo.org/showthread.php?t=88466 :) |
Re: how to make .desktop file/script
Hello again.
Iuse this thread again for another desktop file. I made desktop file: Code:
Exec=/opt/operamobile-labs/bin/operamobile-labs www.maemo.org How I can change that www.maemo.org to content of clipboard? and if its not possible, is it possible with script? I change browser often and it would help a lot if you dont need to open another browser and paste adress but only copy and press desktop icon. Thanks. :D |
Re: how to make .desktop file/script
Anyone? :confused:
|
Re: how to make .desktop file/script
xclip can help you
|
Re: how to make .desktop file/script
I dont know what I am doing. :p
Code:
~$ /opt/operamobile-labs/bin/operamobile-labs |
Re: how to make .desktop file/script
Should I make new thread. :rolleyes:
|
Re: how to make .desktop file/script
Someone say its not possible so I can stop bumbing. :D
|
Re: how to make .desktop file/script
CLIPBOARD=$(xclip -sel clip -o)
/my/browser/executable -url $CLIPBOARD |
All times are GMT. The time now is 23:53. |
vBulletin® Version 3.8.8