Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 10 Feb 2016, 18:05
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
The mess in /root/.config/rox.sourceforge.net/OpenWith
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [21 Posts]   Goto page: 1, 2 Next
Author Message
LazY Puppy


Joined: 21 Nov 2014
Posts: 757
Location: Germany

PostPosted: Tue 22 Dec 2015, 06:16    Post subject:  The mess in /root/.config/rox.sourceforge.net/OpenWith
Subject description: It needs to be refined/improved
 

Hi.

I'm currently working on a script to translate all the files in /root/.config/rox.sourceforge.net/OpenWith (the Rox right-click-options) to a specified language (here: DE, specified at boot up). It is easy to setup for the use of any different language than DE as I'm using associative arrays to solve this. So all what needs to be done would be to translate the names/elements of the associative array.

But the content of /root/.config/rox.sourceforge.net/OpenWith is such a mess, that it seems to be impossible to get all the files translated.

Usually in /root/.config/rox.sourceforge.net/OpenWith there are symbolic links either to a .desktop file in /usr/share/applications or symbolic links to a roxapp directory in /usr/local/apps.

As longs as there are only such targets used for the symbolic links, the script is working pretty well.

But some puppy builders (or is it made by Woof CE scripts?) add different basic content to /root/.config/rox.sourceforge.net/OpenWith and some of this don't use symbolic links targeted as mentioned above.

Example File: /root/.config/rox.sourceforge.net/OpenWith/mkplaylist - which is not a symbolic link but it is a renamed .desktop file instead.

Content of /root/.config/rox.sourceforge.net/OpenWith/mkplaylist wrote:
[Desktop Entry]
Type=Application
Name=MakePlaylist
Exec=mkplaylist
Icon=mini-audiovol
Categories=AudioVideo;
MimeType=application/vnd.ms-asf;application/vnd.rn-realmedia;application/x-annodex;application/x-mplayer2;application/x-quicktimeplayer;application/x-shockwave-flash;application/x-dvi;video/ogg;video/mpeg;video/x-mpeg;video/mp4;video/anim;video/x-anim;video/mkv;video/mng;video/x-mng;video/msvideo;video/quicktime;video/x-quicktime;video/x-flic;video/x-flv;video/x-ms-asf;video/x-ms-asf-plugin;video/x-ms-wax;video/x-ms-wmv;video/x-ms-wvx;video/x-msvideo;


Then there is a second file: /root/.config/rox.sourceforge.net/OpenWith/.inode_directory/mkplaylist which is a symbolic link. This symbolic link is neither targeted to a .desktop file in /usr/share/applications nor to a roxapp directory in /usr/local/apps.

It is targeted to /root/.config/rox.sourceforge.net/OpenWith/mkplaylist.

As long as those files remain un-renamed everything will work well. But after executing my script to translate the files in /root/.config/rox.sourceforge.net/OpenWith the symbolic link /root/.config/rox.sourceforge.net/OpenWith/.inode_directory/mkplaylist which is then renamed to /root/.config/rox.sourceforge.net/OpenWith/.inode_directory/Abspielliste erstellen won't work anymore as it is still targeted to /root/.config/rox.sourceforge.net/OpenWith/mkplaylist which is then also renamed to /root/.config/rox.sourceforge.net/OpenWith/Abspielliste erstellen.

So the only options I do have on this issue is: to remove both of them files or to let them remain in EN.

Question to the Woof CE Community / Puppy Builders: is there any chance to get Puppy following a straight path to use only symbolic links either to .desktop files in /usr/share/applications and/or to use symbolic links to roxapp directories in /usr/local/apps?

_________________
RSH

Wer sich den Wolf ins Heim einlade, der sich nicht beklage, wenn ihm die Liebsten gerissen werden!
Who's welcoming the Wolf at his home, must not complain when his loved ones are torn!
RSH, 2016
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 6126
Location: Valåmoen, Norway

PostPosted: Tue 22 Dec 2015, 17:24    Post subject:  

mkplaylist is a part of ffconvert
http://murga-linux.com/puppy/viewtopic.php?t=54056&search_id=1330451470

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 6838
Location: Gatineau (Qc), Canada

PostPosted: Tue 22 Dec 2015, 19:16    Post subject:  

@Lazy_Puppy:

It's not so much the mess at /root/.config/rox.sourceforge.net/OpenWith
as it is the mess in the *.desktop entries at /usr/share/applications.

/root/.config/rox.sourceforge.net/OpenWith contains only symlinks and
perhaps the odd script file.

I'll second you on your request, but please be aware that this is much
bigger than Puppy: these *.desktop files come from the developers
themselves: all kinds of developers writing all sorts of programs, some
companies, some individuals; some logical, some illogical. There actually
is a standard for the *.desktop files. A standard that nobody cares to
respect too much.

We at Puppy could intercept these weird *.desktop files with a view to
make them as consistent as possible, but as I said, this is BIG: a top-
notch and very serious Linux "authority" cannot get all developers to
comply with the standard.

On the illogical side, the ones I prefer are the *.desktop file where the
dev thinks that the generic name is the same as his own application's
name!!! This was hot discussion in the Middle Ages, the famous quarrel
about Universals versus Particulars!! Yes, in the Middle Ages. Ahh, 600
hundred years ago, and mankind is still illogical !!! Rolling Eyes My medieval
friend Ockham must be hurting in his grave.

Let's not forget that our very own BK has invented some categories to
suit Puppy. Even he is outside the standard sometimes.

The problem you mention is not going away for the foreseeable future,
so we better be prepared to laugh at it! Twisted Evil

BFN.

_________________
musher0
/ Torture, according to Dostoievsky: "To only have enough intelligence to know that you're lacking in it."
/ La torture, d'après Dostoïevski : "Être juste assez intelligent pour savoir qu'on ne l'est pas assez."
Back to top
View user's profile Send private message Visit poster's website 
MochiMoppel


Joined: 26 Jan 2011
Posts: 902
Location: Japan

PostPosted: Tue 22 Dec 2015, 22:14    Post subject: Re: The mess in /root/.config/rox.sourceforge.net/OpenWith
Subject description: It needs to be refined/improved
 

LazY Puppy wrote:
Usually in /root/.config/rox.sourceforge.net/OpenWith there are symbolic links either to a .desktop file in /usr/share/applications or symbolic links to a roxapp directory in /usr/local/apps.

As longs as there are only such targets used for the symbolic links, the script is working pretty well.

But some puppy builders (or is it made by Woof CE scripts?) add different basic content to /root/.config/rox.sourceforge.net/OpenWith and some of this don't use symbolic links targeted as mentioned above.

What the directory /root/.config/rox.sourceforge.net/OpenWith "usually" contains in Puppies is one thing, what directory /root/.config/rox.sourceforge.net/SendTo (yes, Rox needs SentTo, doesn't care for OpenWith !) is designed for and what it should and can contain is a different thing. There is absolutely no need to link .desktop files. The SendTo directory can contain symlinks to any program. It can contain symlinks to directories and it even can contain executable files. Maybe you should make your script more flexible.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6629
Location: Auckland, New Zealand

PostPosted: Tue 22 Dec 2015, 22:37    Post subject:  

What is this .inode_directory though? I think I knew once, but I can't remember.
_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 902
Location: Japan

PostPosted: Tue 22 Dec 2015, 23:19    Post subject:  

A subdirectory of SentTo. Links in this directory will appear in the Rox context menu when you select a single directory (= MIME type inode/directory).
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 6838
Location: Gatineau (Qc), Canada

PostPosted: Tue 22 Dec 2015, 23:43    Post subject:  

@MochiMoppei:

As I understand it, the confusion originated in Lazy_Puppy's statement.
There's nothing to translate in directory
/root/.config/rox.sourceforge.net/OpenWith: it's all symlinks and perhaps
the odd bash script.

IMO, if he really wants to set things straight before doing his translation,
he has to work with the often erratic contents of the *.desktop files in
/usr/share/applications first. (And yes, I'm repeating myself!)

BFN

_________________
musher0
/ Torture, according to Dostoievsky: "To only have enough intelligence to know that you're lacking in it."
/ La torture, d'après Dostoïevski : "Être juste assez intelligent pour savoir qu'on ne l'est pas assez."
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6629
Location: Auckland, New Zealand

PostPosted: Tue 22 Dec 2015, 23:58    Post subject:  

Translations should go upstream in the .desktop files (Although perhaps they get stripped out in Puppy?), so you shouldn't be scripting translation of their contents downstream at Puppy.
_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6629
Location: Auckland, New Zealand

PostPosted: Wed 23 Dec 2015, 00:02    Post subject:  

musher0 wrote:
On the illogical side, the ones I prefer are the *.desktop file where the dev thinks that the generic name is the same as his own application's name!!!

Are you complaining about the way the "desktop environments" like to just call their programs by the generic name? Or are you saying people actually put something like "gnumeric" in as the "generic name"?

_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 902
Location: Japan

PostPosted: Wed 23 Dec 2015, 01:38    Post subject:  

musher0 wrote:
@MochiMoppei:

As I understand it, the confusion originated in Lazy_Puppy's statement.
There's nothing to translate in directory
/root/.config/rox.sourceforge.net/OpenWith: it's all symlinks and perhaps
the odd bash script.
I understand that everything (i.e. all names of symlinks) have to be translated. He can get translation strings from the .desktop files or has to provide them manually, but in case of his mkplaylist example renaming files would not be enough when links point to other (to be renamed) links or files within the SendTo directory. This would require to change the link target, not just the name of the link. I think "mess" is the proper word for what he describes, but on the other hand I think that this is a rare case. I can't see this in Slacko 5.6 and I've never seen a similar case.

Edit: I see now that the mess started with Slacko5.7 . One more reason not to upgrade Laughing
This doesn't mean that the old Slacko5.6 and the brandnew tahrpup6 are sane. Why on earth are there 2 menu items, "FFConvert" and "ffconvert", both pointing to ffconvert.desktop? Will be fun for RSH to translate them both to the same name.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 6838
Location: Gatineau (Qc), Canada

PostPosted: Wed 23 Dec 2015, 07:39    Post subject:  

Well, no.

First, he has to enter that directory with a good vacuum to remove
the doubles. Then, he'll be ok! Smile

As well, send a "heads-up" to don570, who created many of those symlinks,
to make him aware of the doubles.

BFN.

_________________
musher0
/ Torture, according to Dostoievsky: "To only have enough intelligence to know that you're lacking in it."
/ La torture, d'après Dostoïevski : "Être juste assez intelligent pour savoir qu'on ne l'est pas assez."
Back to top
View user's profile Send private message Visit poster's website 
LazY Puppy


Joined: 21 Nov 2014
Posts: 757
Location: Germany

PostPosted: Wed 23 Dec 2015, 07:41    Post subject:  

musher0 wrote:
It's not so much the mess at /root/.config/rox.sourceforge.net/OpenWith
as it is the mess in the *.desktop entries at /usr/share/applications.

Yes I know this. But this is another mess and I had done my own mess already on this, as I had also invented some new menu categories for LazY Puppy. But that's another story why I did so.

MochiMoppel wrote:
What the directory /root/.config/rox.sourceforge.net/OpenWith "usually" contains in Puppies is one thing, what directory /root/.config/rox.sourceforge.net/SendTo (yes, Rox needs SentTo, doesn't care for OpenWith !) is designed for and what it should and can contain is a different thing.

Directory SendTo is a symbolic link to directory OpenWith in all of my puppies. Usually I do refer to a directory of a path instead to a symbolic link of a path. Just wasn't aware of SendTo being the mean part. Though, it should not make any difference if /root/.config/rox.sourceforge.net/OpenWith is used as the path instead of /root/.config/rox.sourceforge.net/SendTo, no?

MochiMoppel wrote:
There is absolutely no need to link .desktop files. The SendTo directory can contain symlinks to any program. It can contain symlinks to directories and it even can contain executable files. Maybe you should make your script more flexible.

Yes, I had already seen scripts and roxapp directories placed somewhere in /root/.config/rox.sourceforge.net/OpenWith. But that were also rare cases, so I assumed symbolic links to .desktop files in /usr/share/applications and/or symbolic links to roxapp directories in /usr/local/apps would be some standard and anything else would be an un-needed exception of this.

Though, to make my script a little more flexible is only needed for those mentioned rare cases of symbolic links in /root/.config/rox.sourceforge.net/OpenWith targeted to files in /root/.config/rox.sourceforge.net/OpenWith.

Doubles like "FFConvert" and "ffconvert" should not cause any problems so far.

Ok, so as zigbert has pointed out -at least for the mkplaylist (renamed) .desktop file- this is not a puppy issue or Woof CE issue in general.

musher0 wrote:
As I understand it, the confusion originated in Lazy_Puppy's statement.
There's nothing to translate in directory
/root/.config/rox.sourceforge.net/OpenWith: it's all symlinks and perhaps
the odd bash script.

Ok, I should have made this more clear as I'm using 'translate' similar to 'rename' because after doing the translation, all file names/symbolic links are renamed/translated to DE. Which sometimes includes an addition to the file name (e.g.: EN = audacity, DE = Audacity Mehrspur-Musikstudio).

These additions to the file name is priority No. 1. Priority No.2 is the need to have the first character of file names like audacity in upper case like Audacity. This depends on the German grammatical use of file names like audacity. We do call this "Eigenname" and those "Eigennamen" has to start with an upper case character generally. Otherwise it looks/views like it was translated by a person completely unable to use German grammatical rules. Laughing

disciple wrote:
Translations should go upstream in the .desktop files (Although perhaps they get stripped out in Puppy?), so you shouldn't be scripting translation of their contents downstream at Puppy.

The rox right-click menu will not show contents of a .desktop file. Doesn't matter if sym-linked or true file is placed into /root/.config/rox.sourceforge.net/OpenWith. It will show only the file name of the file/symbolic link placed somewhere into /root/.config/rox.sourceforge.net/OpenWith. If the mkplaylist.desktop would not have been renamed it would show up as mkplaylist.desktop in the rox right-click menus.

MochiMoppel wrote:
I understand that everything (i.e. all names of symlinks) have to be translated. He can get translation strings from the .desktop files or has to provide them manually, but in case of his mkplaylist example renaming files would not be enough when links point to other (to be renamed) links or files within the SendTo directory. This would require to change the link target, not just the name of the link.

That's it!

Edit:

File /root/.config/rox.sourceforge.net/OpenWith/ffinfo is similar to /root/.config/rox.sourceforge.net/OpenWith/mkplaylist - I assume this is also caused by ffconvert.

Doubles like "FFConvert" and "ffconvert" actually does not cause any problems. After translation there is only one symbolic link: FFConvert Mediakonverter.

_________________
RSH

Wer sich den Wolf ins Heim einlade, der sich nicht beklage, wenn ihm die Liebsten gerissen werden!
Who's welcoming the Wolf at his home, must not complain when his loved ones are torn!
RSH, 2016
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 4058
Location: Ontario

PostPosted: Wed 23 Dec 2015, 12:53    Post subject:  

Musher wrote:
As well, send a "heads-up" to don570, who created many of those symlinks,
to make him aware of the doubles.


I am well aware of "doubles" that is why I warn people to use my
right click utility only on Barry's distros and Slacko distro.
I don't want to support other distros because it's too much work.

____________________________________________________

Regarding inode directory ---> Partitions and directories have
entirely different right clicks. You can check this by doing the right click with your
mouse on the icons.

_______________________________________________

The most recent distros by Barryk allow the SendTo folder to be used
as well. SendTo folder is a link to OpenWith folder

___________________________________________________
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6629
Location: Auckland, New Zealand

PostPosted: Wed 23 Dec 2015, 16:55    Post subject:  

Quote:
The rox right-click menu will not show contents of a .desktop file.


Ah. So why are .desktop files being used instead of just symlinks to the executables?

_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 757
Location: Germany

PostPosted: Wed 23 Dec 2015, 18:08    Post subject:  

disciple wrote:
Quote:
The rox right-click menu will not show contents of a .desktop file.


Ah. So why are .desktop files being used instead of just symlinks to the executables?

Using .desktop files or symbolic links to these files will show the program icon in right-click menu. Equal to symbolic links to roxapp directories.

Symbolic links to the executable will not show the program icon - instead the binary or script icon is used as one can see in /bin or /sbin etc.pp.

Probably I'm not the only one who prefers to see the program icon.

_________________
RSH

Wer sich den Wolf ins Heim einlade, der sich nicht beklage, wenn ihm die Liebsten gerissen werden!
Who's welcoming the Wolf at his home, must not complain when his loved ones are torn!
RSH, 2016
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [21 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0884s ][ Queries: 11 (0.0050s) ][ GZIP on ]