Ticket #2314 (new enhancement)

Opened 7 years ago

Last modified 4 days ago

Freedesktop standard .desktop entry for Midnight Commander

Reported by: ssuominen Owned by:
Priority: trivial Milestone: Future Releases
Component: mc-core Version: master
Keywords: Cc: gotar@…, zaytsev
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

It would be nice if Midnight Commander would appear in menu's by default. This version I've attached is per latest Freedesktop.org menu-spec standard ( http://standards.freedesktop.org )

  1. Install this file:

http://www.midnight-commander.org/chrome/site/MidnightCommander.png

To path:

/usr/share/icons/hicolor/64x64/apps/MidnightCommander.png

  1. Install attached file, "MidnightCommander?.desktop":

To path:

/usr/share/applications/MidnightCommander.desktop

Attachments

MidnightCommander.desktop (184 bytes) - added by ssuominen 7 years ago.
mc.svg (41.9 KB) - added by zaytsev 7 years ago.
mc.desktop (580 bytes) - added by zaytsev 7 years ago.
mcedit.desktop (357 bytes) - added by asy 4 days ago.

Change History

Changed 7 years ago by ssuominen

comment:1 Changed 7 years ago by ssuominen

The Icon can also go to /usr/share/pixmaps/, but that's more of a... legacy directory, I recommend using the hicolor icon theme path.

comment:2 Changed 7 years ago by gotar

  • Cc gotar@… added

Changed 7 years ago by zaytsev

Changed 7 years ago by zaytsev

comment:3 Changed 7 years ago by zaytsev

  • Cc zaytsev added
  • Milestone changed from 4.7.4 to 4.7.5

Hi!

I like the idea, but I don't like your icon. I created one in Inkscape basing upon Tango icons for gnome-terminal and gnome-screensaver. What do you think, guys? Shall this be included by default?

Attached:

  • mc.desktop from PLD CVS
  • mc.svg (self made)

comment:4 Changed 7 years ago by gotar

It's really nice. There is midnight, maybe some battleship with commander fits too? ;)

comment:5 Changed 7 years ago by zaytsev

He-he, don't overestimate my artistic abilities. I have just superimposed the icons one on top of another ala old good gnome-terminal-night icon. If there are any PLD artists that can make it more beautiful of course this effort is always welcome.

comment:6 follow-up: ↓ 8 Changed 7 years ago by ssuominen

Please don't use "mc" as the name of the icon or desktop entry, because it's so short it might actually collide with some other package. I'd prefer longer name, such as "midnightcommander" or "MidnightCommander?", that way it won't cause problems for sure.

Just my 2 cents.

Btw, the SVG icon looks nice (although it's almost identical to the gnome-screensaver icon)

comment:7 follow-up: ↓ 9 Changed 7 years ago by zaytsev

midnight-commander.* doesn't sound too bad to me, this is the standard naming for icons as far as I can see.

comment:8 in reply to: ↑ 6 Changed 7 years ago by gotar

Replying to ssuominen:

Please don't use "mc" as the name of the icon or desktop entry, because it's so short it might actually collide with some other package.

No, it won't. We've got 15000 spec files (i.e. packages not counting splits) in PLD Linux and no such conflict exists.

comment:9 in reply to: ↑ 7 Changed 7 years ago by gotar

Replying to zaytsev:

midnight-commander.* doesn't sound too bad to me, this is the standard naming for icons as far as I can see.

As long as it's possible package resources should be named exactly like package itself, so there are /etc/mc, /usr/lib/mc and /usr/share/mc inside mc-X.Y.Z-R.arch.rpm. There's no single file with uncollapsed name, so this would be inconsistent.

And the most popular naming scheme involves not project name, but binary name (in this case 'mc' too).

comment:10 follow-up: ↓ 11 Changed 7 years ago by ssuominen

comment:11 in reply to: ↑ 10 Changed 7 years ago by gotar

Replying to ssuominen:

/usr/share/apps/konsole/mc.desktop konsole [m68k]

/usr/share/apps is KDE directory, m68k is unofficial port

/usr/share/link-monitor-applet/flags/mc.svg link-monitor-applet-common

This is app-specific directory.

too many mc.png's to even count:

Exactly 14 to be specific;) every one in it's own directory.

but whatever you say... I just wanted to play it safe :)

If some minor, not widely used nor important project would like to use 'mc' in a future... well, it would be their problem. MC by it's history owns the right to this short name.

comment:12 Changed 5 years ago by andrew_b

  • Branch state set to no branch
  • Milestone changed from 4.7.5 to Future Releases

comment:13 Changed 15 months ago by andrew_b

Ticket #3592 has been marked as a duplicate of this ticket.

comment:14 follow-up: ↓ 15 Changed 9 days ago by andrew_b

Ticket #3812 has been marked as a duplicate of this ticket.

Changed 4 days ago by asy

comment:15 in reply to: ↑ 14 Changed 4 days ago by asy

Replying to andrew_b:

Ticket #3812 has been marked as a duplicate of this ticket.

Ticket #3812 was similar but was not a duplicate. I copied the mcedit.desktop here. Now a duplicate.

Note: See TracTickets for help on using tickets.