LinuxVillage

LinuxVillage welcome => Technical discussions => Discussion démarrée par: melodie le 18 mars 2013 à 14:40:16

Titre: Lxshortcut to create your own launchers
Posté par: melodie le 18 mars 2013 à 14:40:16
Hi,

Lxshortcut allows creating easily a new launcher for the desktop (or to put into the menus if you want to edit what it produces). I want to have a launcher in the menus for it, so I figured out I could use it to make a launcher for itself, then pick a pair of icons in two icon themes : that makes 4! ^^ then gather them in one new icon, with Gimp.

Here is the result for now:
http://meets.free.fr/debian/configurations/Lxshortcut (http://meets.free.fr/debian/configurations/Lxshortcut)

Citer
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=Lxshortcut
Name[fr_FR]=Lxshortcut
Icon=lxshortcut48.png
Exec=lxshortcut -o %U
Comment=Create your own application launchers
Comment[fr_FR]=Créez vos propres lanceurs d'applications
NotShowIn=GNOME;XFCE;
Categories=Settings;DesktopSettings;GTK;
StartupNotify=true
Terminal=false

and the icon:
(http://meets.free.fr/debian/configurations/Lxshortcut/lxshortcut48.png)

but this doesn't work, because there is something which might be missing above the little lxshortcut gui : some instructions to provide a choice of action.

Here is the --help-all content for lxshortcut:

Citer
Usage:
  lxshortcut [OPTION...]

Help Options:
  -h, --help                              Show help options
  --help-all                              Show all help options
  --help-gtk                              Show GTK+ Options

GTK+ Options
  --class=CLASS                           Program class as used by the window manager
  --name=NAME                             Program name as used by the window manager
  --screen=SCREEN                         X screen to use
  --sync                                  Make X calls synchronous
  --gtk-module=MODULES                    Load additional GTK+ modules
  --g-fatal-warnings                      Make all warnings fatal

Application Options:
  -n, --no-display                       
  -i, --input=file name or desktop id     input file
  -o, --output                            file name
  --display=DISPLAY                       X display to use


I have tried the Exec= commands "lxshortcut", asks for options, tried lxshortcut -o, lxshortcut -o %f, lxshortcut -o %F and also %U. (random trials... )

Here is the official page http://wiki.lxde.org/en/LXShortCut (http://wiki.lxde.org/en/LXShortCut)
with a pic of the program in action:
(http://wiki.lxde.org/en/images/1/1e/LXShortCut.png)

the launchpad page: https://launchpad.net/ubuntu/+source/lxshortcut/0.1.2-3 (https://launchpad.net/ubuntu/+source/lxshortcut/0.1.2-3)

and sourceforges: http://sourceforge.net/projects/lxde/files/LXShortcut%20(edit%20app%20shortcut)/ (http://sourceforge.net/projects/lxde/files/LXShortcut%20(edit%20app%20shortcut)/)


I have looked into the sources, it is written in C.

Is someone interested to have a look at it to make it possible to start from menus ?
Titre: Re : Lxshortcut to create your own launchers
Posté par: konaexpress le 18 mars 2013 à 15:33:03
That looks like a cool little app, think I will use it. Save time from making .desktop files.
Titre: Re : Lxshortcut to create your own launchers
Posté par: melodie le 18 mars 2013 à 15:38:42
Yes it is cool, but you must not forget you have installed it at some time, because it's not in the menus. ^^

This is a bit annoying, when you think most console apps can have a launcher in the menus, but not this one, which is not even a console application. :)

Titre: Re : Lxshortcut to create your own launchers
Posté par: djohnston le 18 mars 2013 à 22:21:45
Is pcmanfm managing your desktop?

Citer
darrel@OBubuntu:~$ cat /usr/share/doc/lxshortcut/README.Debian
                          lxshortcut README.Debian
           ---------------------


lxshortcut package provides a way of customize menu entry and easy to
make shortcut to launcher application on desktop.

Customize menu entry
--------------------
It will be launched when you right click on lxpanel menu entry and
lxlauncher menu icon.

Make shortcut on desktop
------------------------
You need to have a desktop managed by pcmanfm.
You can enable it manually by:
Edit => Preferences => Desktop => check "Manage the desktop and show file
icons".
darrel@OBubuntu:~$
Titre: Re : Lxshortcut to create your own launchers
Posté par: melodie le 19 mars 2013 à 00:08:38
djohnston, thanks, but the 3 are unrelated.

lxshortcut is a gui application, which does not have a gui to start it ! I must be started manually from console with at least one option and with an argument.

I asked on a chan where some buddies code, and one of them offered to work on it. He has already submitted to me a first version written in Qt and he continues to work on it next to improve it. Would you want to test as well ?
Titre: Re : Re : Lxshortcut to create your own launchers
Posté par: djohnston le 19 mars 2013 à 07:18:53
Sure, I'll test it. But, I have no idea what you mean by

djohnston, thanks, but the 3 are unrelated.

I know what lxshortcut is. I installed the package on OBubuntu and installed your .desktop file and icon. I got nowhere with it from CLI, either.
Titre: Re : Lxshortcut to create your own launchers
Posté par: djohnston le 19 mars 2013 à 19:03:24
Okay, I've discovered lxshortcut will run on other desktops, including Openbox. The problem with an lxshortcut.desktop file is that the executable needs arguments given which cannot be provided by a standard desktop file. Perhaps with a bash or python script using dialog which accepts user input. There are two other shortcomings with the executable itself. (1) It will not accept a path for the desktop file it creates. (2) If the desktop file to be created is not an actual link (shortcut), there is no Categories= line created.

Here I tried to give an absolute path to create a desktop file.

(http://s19.postimage.org/ezl2jmom7/lxshortcut01.jpg) (http://postimage.org/image/ezl2jmom7/)

It was not created at all.

(http://s19.postimage.org/6vcyew273/lxshortcut02.jpg) (http://postimage.org/image/6vcyew273/)

Next, I gave it no absolute or relative path. The desktop file was created and placed in my home directory.

(http://s19.postimage.org/xhpf3v6e7/lxshortcut03.jpg) (http://postimage.org/image/xhpf3v6e7/)

However, the desktop file has no Categories= line.

(http://s19.postimage.org/3r2ai3len/lxshortcut04.jpg) (http://postimage.org/image/3r2ai3len/)


I realize the intended use is for creating shortcuts (soft links), not desktop files. For that purpose, no Categories= line is required. The inability to specify a path, or directory, in which to place the shortcut is a shortcoming, in my opinion.

I cannot find any activity for lxshortcut in the LXDE wiki (http://wiki.lxde.org/en/LXShortCut) since 2011, and nothing on the LXDE blog (http://blog.lxde.org/?p=125) since 2008. A rewrite, as you have suggested, is probably the best way forward. The application was written by the PCManFM author.

EDIT: Well, I can't seem to get this right. lxshortcut will accept an output path. I specified /home/darrel/Downloads/test.desktop, and the file was created.
Titre: Re : Re : Lxshortcut to create your own launchers
Posté par: melodie le 20 mars 2013 à 01:23:59
The problem with an lxshortcut.desktop file is that the executable needs arguments given which cannot be provided by a standard desktop file. Perhaps with a bash or python script using dialog which accepts user input. There are two other shortcomings with the executable itself. (1) It will not accept a path for the desktop file it creates. (2) If the desktop file to be created is not an actual link (shortcut), there is no Categories= line created.

Hi,

This is what I figured out, and which caymus from the http://www.coyotus.com (http://www.coyotus.com) forum is being working on, with a Qt additional app. He might provide two new scripts to test tomorrow.

The options allow doing a file towards a path. Choose once "-o", and the other time "-i" and make tests : you will see one works for both : current directory and absolute path to elsewhere, and the other only for ? (I don't remember now... I use "-o" only since a few days)

Titre: Re : Lxshortcut to create your own launchers
Posté par: caymus le 21 mars 2013 à 16:22:53
Hi,
firstly, sorry for my poor English.

Qt-lxshortcut Assistant 0.2

some explanation before:

On Unity, Gnome-shell, cinnamon, gnome2, xfce:

There is a folder for user to add shortcuts and find then automatically in menus sections.
This is /home/$user/.local/share/applications

When you install an application, it requests an root access and files are in
/usr/share/applications

The mechanism of automatically adding icons in menus sections, is managed by /etc/xdg and probably bamf daemon.

For custom made OS this is another story because /home/$user/.local/share/applications is not all time referenced into /etc/xdg config files.

here 2 links :

http://forum.kde.org/viewtopic.php?f=17&t=87957 (http://forum.kde.org/viewtopic.php?f=17&t=87957)

http://markmail.org/message/3tdve37nbeacvcny (http://markmail.org/message/3tdve37nbeacvcny)
(If the mechanisme is well configured and  /home/$user/.local/share/applications dont do is job, after  the .desktop creation,sometime, just logout, login again and bamf make is job.)

Additional research may be useful, about bamf and xdg.


Now the Qt-lxshortcut Assistant mechanism itself:

1* Search after the folder /home_path/.local/share/applications/, if does not exist create it.

2* Run the command lxshortcut + parameters when the "start" button is pressed. (Parameters is combobox folder location + name of .desktop).

3* Waiting lxshortcut is stopped, to edit the .desktop, and insert "Categories= + comboBox2 choice" at the end of file.

4* If target is /home/$user/Desktop, set execute permission on .desktop file created.

This is just a little hack in gui, over lxshortcut, if you have ideas for change or improvement, thank you for giving them.

I have sent the sources and compiling in 32 and 64 bit to mélodie.

This is made with Qt 4.8.3 gcc 4.7.2







Titre: Re : Lxshortcut to create your own launchers
Posté par: djohnston le 21 mars 2013 à 17:18:47
Thanks, caymus. I look forward to testing. Your English is fine.

EDIT:
http://markmail.org/message/3tdve37nbeacvcny (http://markmail.org/message/3tdve37nbeacvcny)
(If the mechanisme is well configured and  /home/$user/.local/share/applications dont do is job, after  the .desktop creation,sometime, just logout, login again and bamf make is job.)

Additional research may be useful, about bamf and xdg.
The "it's impossible to directly copy any - .desktop file from /usr/share/applications to a local folder to - customize it, without removing the above flag, and this is wrong" thing must be unique to Ubuntu/Unity. I've never encountered it.
Titre: Re : Lxshortcut to create your own launchers
Posté par: caymus le 21 mars 2013 à 18:23:48
Yes, probably.

That I met during rapid test on a fresh installation of Ubuntu unity 12.04 32bit and 12.10 32bit

No /home/$user/.local/share/applications (the folder is created automatically when you make a connection file to open with such typical application) (mimeapps.list)
Citer
BAMF doesn't consider any .desktop file saved in ~/.local/share/applications
Restart bamfdaemon and unity (or just log-out and log-in again)

Has solved my problem. (it was just a parenthesis in case this would happen to someone one)

For archlinux with cinnamon, or ubuntu 12.04 64 bit  i dunno, because this wasnt a fresh install, and everything worked as expected.

For KDE i need to dig a little in my spare time, because it has its own system for managing shortcuts.
For Openbox, I have not had time to look at how it works, in addition, there obmenu and I didn 't have time to test /etc/xdg + bamf on it

Therefore, any feedback on your window manager with xdg / bamf, are welcome, because I have not the time to test them all from scratch.

http://standards.freedesktop.org/desktop-entry-spec/latest/index.html (http://standards.freedesktop.org/desktop-entry-spec/latest/index.html)
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html (http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html)
http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry (http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry)
Titre: Re : Lxshortcut to create your own launchers
Posté par: melodie le 21 mars 2013 à 20:23:38
Hi, the files are available at the usual place where I throw all files which are not ISOs.

http://meets.free.fr/debian/code/ (http://meets.free.fr/debian/code/)

caymus, let me send big thanks to you for joining us and helping with your coding knowledge! \o/ !

... and testing the settings for the very new captcha as well!  ;D



Titre: Re : Re : Lxshortcut to create your own launchers
Posté par: melodie le 21 mars 2013 à 20:31:28
The "it's impossible to directly copy any - .desktop file from /usr/share/applications to a local folder to - customize it, without removing the above flag, and this is wrong" thing must be unique to Ubuntu/Unity. I've never encountered it.

Working only on Openbox installs I have probably met it without paying attention, because when some lines in desktop files don't allow the entry to appear in the menus I just change it to something more agnostic.

Gnome xyz, Unity wx... same result, same punition : erase. I admit I should also be reporting bugs for each of them... maybe one day I will dedicate a whole year just to report the small annoying bugs. :)

Titre: Re : Lxshortcut to create your own launchers
Posté par: djohnston le 21 mars 2013 à 21:38:36
@melodie,

Either I'm reading the bug report wrong, or the description is wrong. It says (http://markmail.org/message/3tdve37nbeacvcny):

Citer
it's impossible to directly copy any - .desktop file from /usr/share/applications to a local folder to - customize it
I take that to mean that a .desktop file cannot be copied from /usr/share/applications/ to ~/.local/share/applications/ while the bamfdaemon is running. I could be wrong, but that's the way the description reads. I have encountered the problem with OnlyShowIn=ThisDE or NotShowIn=ThatDE. In those instances, I do the copy from the system directory to my home directory, make necessary changes, and the DE menu reflects those changes. The bug report description also says that after copying a desktop file to ~/.local/share/applications/, making changes, then restarting bamfdaemon, after having stopped it for the filecopy, the Unity menus are not updated appropriately.

@caymus,

I've looked at the following Ubuntu precise based distros:
Bodhi - e17
OBubuntu - Openbox
Katana - RazorQt

None have the bamfdaemon installed or running.

In addition, I've looked at the following Debian based distros:
Wheezy 64bit - XFCE
Wheezy 32bit - Openbox, LXDE, RazorQt and e17

None have the bamfdaemon installed or running. The package is available in both Ubuntu precise repos and in Debian Wheezy repos. However, I see no reason to tempt fate by installing the package, as the /etc/xdg/ configurations are doing their job well without the need for the bamfdaemon.
Titre: Re : Re : Lxshortcut to create your own launchers
Posté par: djohnston le 21 mars 2013 à 21:48:11
Hi, the files are available at the usual place where I throw all files which are not ISOs.

http://meets.free.fr/debian/code/ (http://meets.free.fr/debian/code/)
You have two directories, one 20-Mar-2013 01:28 and the other 20-Mar-2013 23:28. Are they both the same, or is the later one the right one? There's also a blank frame on all your pages, for some odd reason.

(http://s19.postimg.org/b772kdwdb/blank_frame.jpg) (http://postimg.org/image/b772kdwdb/)

Titre: Re : Lxshortcut to create your own launchers
Posté par: caymus le 21 mars 2013 à 22:05:34
@djohnston

Citer
None have the bamfdaemon installed or running. The package is available in both Ubuntu precise repos and in Debian Wheezy repos. However, I see no reason to tempt fate by installing the package, as the /etc/xdg/ configurations are doing their job well without the need for the bamfdaemon.

Ok, good to know, i havent spend alot of time around all this.
Thx djohnston, this is the kind of comment that makes me save a lot of time

For your question, i thing mélodie must delete the 1rst folder, this is version 0.1 folder & version 0.2 folder called QT_LXshortcutAssistant1/ & QT_LXshortcutAssistant2/

dont test the version 0.1please...

@ mélodie

it would be better if there was only one folder  QT_LXshortcutAssistant/ and put revisions in it.
And one sub folder called  QT_LXshortcutAssistant/src/
Something like that.

0.1 is the first try without  requiered features.
Delete it simply, please.
Titre: Re : Lxshortcut to create your own launchers
Posté par: melodie le 21 mars 2013 à 23:08:58
Hi,

2 directories because caymus works too fast. :p

Just hover and look at the links in the corner of the browser, one has a 1 the other has a 2 at the end. I don't have the blank screen, is your adblock up to date ? (this is a space provided by a generous and commercially very... how can I say?  commercially intense French ISP where I was registered long ago...)
Titre: Re : Re : Lxshortcut to create your own launchers
Posté par: djohnston le 22 mars 2013 à 00:17:21
Just hover and look at the links in the corner of the browser, one has a 1 the other has a 2 at the end. I don't have the blank screen, is your adblock up to date ? (this is a space provided by a generous and commercially very... how can I say?  commercially intense French ISP where I was registered long ago...)
I grabbed the latest code. Also updated adblock to enable ads on your domain. But, the ad is still misplaced. It's covering part of the page description. I don't think that's what you want.

(http://s19.postimg.org/q4fjle9lr/blank_frame2.jpg) (http://postimg.org/image/q4fjle9lr/)
Titre: Re : Lxshortcut to create your own launchers
Posté par: melodie le 22 mars 2013 à 00:28:48
I can't say I want it, I can't have any action on it. It's a free space as in free beer and thats it! (advantage : not limited in size, as far as I know, and I have a ftp connection to it, plus all can use the full real link to it with a download manager of their choice).

I can just say the latest versions of Firefox are kind of crummy... try to display in Midori, Chromium, Opera ?

Titre: Re : Lxshortcut to create your own launchers
Posté par: djohnston le 22 mars 2013 à 00:46:01
@caymus,

I'm not sure what to make of this. I see the makefiles are included in the tarball, but the executable is also there. Should I just extract it somewhere in my home directory or should it be extracted to /usr/local/bin/ or ... ?

darrel@DebRazor:  7 items 1.2Mb -> tar -tzvf Qt-lxshortcut-Assistant_build-0.2-32bit.tar.gz
-rw-rw-r-- caymus/caymus  8679 2013-03-20 02:08 Qt-lxshortcut-Assistant build-0.2-32bit/Makefile
-rw-rw-r-- caymus/caymus  7479 2013-03-20 02:08 Qt-lxshortcut-Assistant build-0.2-32bit/ui_mainwindow.h
-rw-rw-r-- caymus/caymus  1604 2013-03-20 02:08 Qt-lxshortcut-Assistant build-0.2-32bit/main.o
-rwxrwxr-x caymus/caymus 45658 2013-03-20 02:08 Qt-lxshortcut-Assistant build-0.2-32bit/Qt-lxshortcut
drwxrwxr-x caymus/caymus     0 2013-03-20 02:08 Qt-lxshortcut-Assistant build-0.2-32bit/
-rw-rw-r-- caymus/caymus  7276 2013-03-20 02:08 Qt-lxshortcut-Assistant build-0.2-32bit/moc_mainwindow.o
-rw-rw-r-- caymus/caymus  3059 2013-03-20 02:08 Qt-lxshortcut-Assistant build-0.2-32bit/moc_mainwindow.cpp
-rw-rw-r-- caymus/caymus 24900 2013-03-20 02:08 Qt-lxshortcut-Assistant build-0.2-32bit/mainwindow.o
-rw-rw-r-- caymus/caymus  4503 2013-03-18 13:19 Qt-lxshortcut-Assistant build-0.2-32bit/lxshortcut48.png

Titre: Re : Lxshortcut to create your own launchers
Posté par: caymus le 22 mars 2013 à 01:17:09
You can extract it where you wan and run the executable, MakeFile is here in case you wan to do a package or compile.

In fact the executable and icon should be necessary, if you just extract it somewhere in your home directory.

The icon must be in the same path as the executable, in this case, or use a .desktop otherwise.
Titre: Re : Lxshortcut to create your own launchers
Posté par: djohnston le 22 mars 2013 à 03:29:37
Thanks, caymus. I decided to just try the executable from my ~/bin/ directory. I made a desktop file for it, put it in ~/.local/share/applications/. This app works great!

I made a desktop shortcut that starts the LinuxVillage website in the Qupzilla browser with the command line:
qupzilla http://linuxvillage.net (http://linuxvillage.net)

I launched the app from the desktop shortcut, and it does what I intended it to do.

(http://s19.postimg.org/3trolfcbj/qt_lxshortcut01.jpg) (http://postimg.org/image/3trolfcbj/)

Next, I made a desktop shortcut that lists my user's desktop files with the command:
sakura -h -x "ls -l ~/.local/share/applications"

(http://s19.postimg.org/mndhifajj/qt_lxshortcut02.jpg) (http://postimg.org/image/mndhifajj/)

And, here it is running.

(http://s19.postimg.org/gayc8l7hb/qt_lxshortcut03.jpg) (http://postimg.org/image/gayc8l7hb/)

Then, I copied the LinuxVillage shortcut from ~/Desktop/ to ~/.local/share/applications/. The file had the category of Network, and it shows in the Internet section of the RazorQt menu.

The only thing you could do to make this app better is to add the option of choosing an icon for the created shortcut. You did a fantastic job in a short amount of time! Thanks!   8)
Titre: Re : Re : Lxshortcut to create your own launchers
Posté par: melodie le 22 mars 2013 à 03:52:38
Next, I made a desktop shortcut that lists my user's desktop files with the command:
sakura -h -x "ls -l ~/.local/share/applications"

Hi,

you could try the generic "x-terminal-emulator" command instead of sakura. (a possibility, that should work).

Citer
(http://s19.postimg.org/mndhifajj/qt_lxshortcut02.jpg) (http://postimg.org/image/mndhifajj/)

And, here it is running.

caymus, you might add an "s" in the title of the menu : "assistant".


Citer
The only thing you could do to make this app better is to add the option of choosing an icon for the created shortcut.

You do have it in the window of the main program?
 

Citer
You did a fantastic job in a short amount of time! Thanks!   8)


+10!
I will add it to the next OBUbuntu after the one being presently uploaded. :)

Titre: Re : Re : Re : Lxshortcut to create your own launchers
Posté par: djohnston le 22 mars 2013 à 04:47:52
You do have it in the window of the main program?

Yes, I completely overlooked it.  ???  :-[  And with plenty of choices. You can choose from existing icons, or you can choose a custom image file.

I stand corrected. This app is already finished and working!

 
Titre: Re : Lxshortcut to create your own launchers
Posté par: djohnston le 22 mars 2013 à 06:04:55
caymus,

I'd be remiss if I didn't test the 64bit version. I don't know if there is a problem with it or if the dialog package is missing. What dialog program does the qt-lxshortcut call for the .desktop file particulars? Is it yad, dialog, glade, zenity, or what? Since this wasn't installed through the package manager, no dependencies were called for.
Titre: Re : Re : Lxshortcut to create your own launchers
Posté par: mimas le 22 mars 2013 à 09:14:48
What dialog program does the qt-lxshortcut call for the .desktop file particulars? Is it yad, dialog, glade, zenity, or what?
Lxshortcut is a GTK app but it requires parameters to be launched.

Qt-lxshortcut is a graphical frontend to lxshortcut which is a graphical application. It's ironic. But more, the GTK app is launched by a QT app.

Nice program, caymus.



Titre: Re : Lxshortcut to create your own launchers
Posté par: caymus le 22 mars 2013 à 11:06:07
Yes, as mimas say , this is a little ironic, 1rst because lxshortcut is a gui which must be initiated by command lines, whitout gui...

2. Because i use Qt to do this.

The correct way would be to finish the work of lxshortcut or I keep my Qt application to do all the job.

If I have some time I will look what I can do, but I feel I am more at ease in  Qt - c + + that gtk - c.

@  mélodie,

thank you for pointing out the typo, I'll be sending the version 0.2 again, or I correct in version 0.3 which will increasingly towards a standalone management .desktop.

But lack of time it will gradually. maybe around version 0.7 it will be a standalone version.

but I do not like this idea to work 2 times for same thing, the ideal would be to contact the developer of lxshortcut for that he finish his work completely...
Titre: Re : Lxshortcut to create your own launchers
Posté par: melodie le 22 mars 2013 à 11:12:45
caymus, then maybe would you want to continue with Qt ? And why not... let's talk about it on the chan some time ?

Titre: Re : Re : Re : Lxshortcut to create your own launchers
Posté par: djohnston le 22 mars 2013 à 18:12:54
Lxshortcut is a GTK app but it requires parameters to be lanched.

Qt-lxshortcut is a graphical frontend to lxshortcut which is a graphical application. It's ironic. But more, the GTK app is launched by a QT app.

Nice program, caymus.
I don't understand the answer given. The Qt-lxshortcut 64bit executable on an XFCE desktop isn't working the same way as the 32bit executable on a RazorQt desktop. I launch the program. Doesn't matter if it's launched from CLI or a menu.

(http://s19.postimg.org/hk9naaza7/qt_lxshortcut64_01.jpg) (http://postimg.org/image/hk9naaza7/)

As soon as I click the Start button, no other dialogs are shown and the shortcut is immediately created. And here are the contents of the shortcut.

(http://s19.postimg.org/9ssxbqv4v/qt_lxshortcut64_02.jpg) (http://postimg.org/image/9ssxbqv4v/)

I'll see if any programs not yet installed will help the situation.
Titre: Re : Lxshortcut to create your own launchers
Posté par: caymus le 22 mars 2013 à 20:38:15
there are several possible causes to this problem.
most likely that is a problem with lxshortcut.

Because my application launch lxshortcut command regardless of whether it is present or if it crashes.

Next step is read/write to the end of file.desktop & add only Categories= +combobox
If lxshortcut cant create it, my application edit & save (create a empty desktop file with Categories= +combobox)

This is what happens in your case i thing.



The new application should not cause this kind of problem, it creates the.desktop from a to z alone.

http://linuxvillage.net/index.php/topic,234.0.html (http://linuxvillage.net/index.php/topic,234.0.html)

There is no more hack over lxshortcut. :)
Titre: Re : Lxshortcut to create your own launchers
Posté par: caymus le 22 mars 2013 à 23:09:02
PS: can you share the name of the metacity theme please? (the window decorator), it is great.
Titre: Re : Re : Lxshortcut to create your own launchers
Posté par: djohnston le 22 mars 2013 à 23:55:04
Qt-lxshortcut is a graphical frontend to lxshortcut which is a graphical application.
My apologies, mimas. You gave me the correct answer. I just did not see it.

most likely that is a problem with lxshortcut.

Because my application launch lxshortcut command regardless of whether it is present or if it crashes.
This makes perfect sense. lxshortcut was not installed in the 64bit XFCE desktop. After installing it, I tried Qt-lxshortcut once again. It now works just as well as the 32bit version. I don't know why I didn't think of that. I suppose I assumed Qt-lxshortcut was already a standalone app.

The new application should not cause this kind of problem, it creates the.desktop from a to z alone.

http://linuxvillage.net/index.php/topic,234.0.html (http://linuxvillage.net/index.php/topic,234.0.html)
I will try this next.

PS: can you share the name of the metacity theme please? (the window decorator), it is great.
It's an XFCE theme named 23oz (http://xfce-look.org/content/show.php/23oz+for+xfwm4?content=124487). The 23oz theme has been around a very long time. As far as I know, it was first designed for the e16 desktop.

Thanks, again, for your work.
Titre: Re : Re : Re : Lxshortcut to create your own launchers
Posté par: mimas le 23 mars 2013 à 13:11:49
My apologies, mimas. You gave me the correct answer. I just did not see it.
Well, it's surprising to see a GTK application which has to be executed in a console. :)