#1 Add desktop file

Open
opened 2 years ago by stefanhusmann · 5 comments

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 commented 2 years ago
Owner

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 commented 2 years ago
Poster

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 commented 2 years ago
Owner

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!
Sign in to join this conversation.
No Label
No Milestone
No assignee
4 Participants
Loading...
Cancel
Save
There is no content yet.