#1 Add desktop file

Otevřený
otevřeno před 3 roky uživatelem stefanhusmann · 5 komentářů

An AUR user mad the sugestion to have a desktop file for litemdview, and suggested this one:

[Desktop Entry]
Version=1.0
Name=litemdview
GenericName=Markdown Viewer
Comment=Suckless Markdown viewer
Exec=litemdview %u
Icon=litemdview
Terminal=false
X-MultipleArgs=false
Type=Application
MimeType=text/markdown;text/x-markdown
StartupNotify=true
StartupWMClass=litemdview
An AUR user mad the sugestion to have a desktop file for litemdview, and suggested this one: ``` [Desktop Entry] Version=1.0 Name=litemdview GenericName=Markdown Viewer Comment=Suckless Markdown viewer Exec=litemdview %u Icon=litemdview Terminal=false X-MultipleArgs=false Type=Application MimeType=text/markdown;text/x-markdown StartupNotify=true StartupWMClass=litemdview ```
g0tsu okomentoval před 3 roky
Vlastník

Hi !

It's quite interesting how it supposed to work :) I mean, the litemdview is one of those tools which meant to be run using command line.

Hi ! It's quite interesting how it supposed to work :) I mean, the `litemdview` is one of those tools which meant to be run using command line.
stefanhusmann okomentoval před 3 roky
Autor

I am fine if you reject this request. Your reply makes sense.

I am fine if you reject this request. Your reply makes sense.

It's me that asked for that. Why not ? it's a gui app, so for simple task like a markdwon preview of file that's fine for me. the .desktop file helps to get it available in DE.

It's me that asked for that. Why not ? it's a gui app, so for simple task like a markdwon preview of file that's fine for me. the .desktop file helps to get it available in DE.
g0tsu okomentoval před 3 roky
Vlastník

Hello !

I didn't say no. Just trying to figure out how to install the .desktop file. Will add it for a next version.

Thank you.

Hello ! I didn't say no. Just trying to figure out how to install the `.desktop` file. Will add it for a next version. Thank you.

I like the viewer! Was looking for something simple and this was perfect. But for some reason, not sure if by design, I was only able to have one instance running at a time. Not sure if this is the appropriate way but I edited the desktop file from...

Exec=litemdview %u

to...

Exec=nohup dbus-run-session litemdview %u &

and that seems to have solved it. Thanks for the program!

I like the viewer! Was looking for something simple and this was perfect. But for some reason, not sure if by design, I was only able to have one instance running at a time. Not sure if this is the appropriate way but I edited the desktop file from... ``` Exec=litemdview %u ``` to... ``` Exec=nohup dbus-run-session litemdview %u & ``` and that seems to have solved it. Thanks for the program!
Přihlaste se pro zapojení do konverzace.
Bez štítku
Bez milníku
Bez zpracovatele
4 účastníků
Načítání...
Zrušit
Uložit
Není zde žádný obsah.