How to set WPS Presentation the default Powerpoint program in Debian X11?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
There is no menu option for the default powerpoint program in Details > Default Applications in Debian Linux, in Fig. 1.
A terminal command and/or GUI tool is welcome for the task.
Testing Stephen's oneliner
Commands and their outputs
$ xdg-mime query filetype test.ppt
application/wps-office.ppt
$ xdg-mime query default $(xdg-mime query filetype test.ppt)
wps-office-wpp.desktop
Testing setting up by the outptus the default ppt viewer
xdg-mime default wps-office-wpp.desktop
application/wps-office.ppt
Output: no effect in opening .ppt files; other lines are not needed because VND and others are not in my system
OS: Debian 9.1 Linux
Powerpoint: WPS Presentation, currently LibreOffice presentation as default
debian x11 power-management gsettings wps-office
add a comment |Â
up vote
0
down vote
favorite
There is no menu option for the default powerpoint program in Details > Default Applications in Debian Linux, in Fig. 1.
A terminal command and/or GUI tool is welcome for the task.
Testing Stephen's oneliner
Commands and their outputs
$ xdg-mime query filetype test.ppt
application/wps-office.ppt
$ xdg-mime query default $(xdg-mime query filetype test.ppt)
wps-office-wpp.desktop
Testing setting up by the outptus the default ppt viewer
xdg-mime default wps-office-wpp.desktop
application/wps-office.ppt
Output: no effect in opening .ppt files; other lines are not needed because VND and others are not in my system
OS: Debian 9.1 Linux
Powerpoint: WPS Presentation, currently LibreOffice presentation as default
debian x11 power-management gsettings wps-office
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
There is no menu option for the default powerpoint program in Details > Default Applications in Debian Linux, in Fig. 1.
A terminal command and/or GUI tool is welcome for the task.
Testing Stephen's oneliner
Commands and their outputs
$ xdg-mime query filetype test.ppt
application/wps-office.ppt
$ xdg-mime query default $(xdg-mime query filetype test.ppt)
wps-office-wpp.desktop
Testing setting up by the outptus the default ppt viewer
xdg-mime default wps-office-wpp.desktop
application/wps-office.ppt
Output: no effect in opening .ppt files; other lines are not needed because VND and others are not in my system
OS: Debian 9.1 Linux
Powerpoint: WPS Presentation, currently LibreOffice presentation as default
debian x11 power-management gsettings wps-office
There is no menu option for the default powerpoint program in Details > Default Applications in Debian Linux, in Fig. 1.
A terminal command and/or GUI tool is welcome for the task.
Testing Stephen's oneliner
Commands and their outputs
$ xdg-mime query filetype test.ppt
application/wps-office.ppt
$ xdg-mime query default $(xdg-mime query filetype test.ppt)
wps-office-wpp.desktop
Testing setting up by the outptus the default ppt viewer
xdg-mime default wps-office-wpp.desktop
application/wps-office.ppt
Output: no effect in opening .ppt files; other lines are not needed because VND and others are not in my system
OS: Debian 9.1 Linux
Powerpoint: WPS Presentation, currently LibreOffice presentation as default
debian x11 power-management gsettings wps-office
debian x11 power-management gsettings wps-office
edited Nov 11 '17 at 8:52
asked Sep 26 '17 at 11:07
Léo Léopold Hertz ì¤ÂìÂÂ
9131041102
9131041102
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
There is no such thing as a âÂÂdefault PowerPointâÂÂ; you need to define the default handler for the various MIME types associated with presentations. To do so, determine which .desktop
file represents the program you wish to use, then (as your own user, not root
) run
xdg-mime default your-program.desktop
application/vnd.oasis.opendocument.presentation
application/vnd.oasis.opendocument.presentation-template
application/vnd.sun.xml.impress
application/vnd.sun.xml.impress.template
application/mspowerpoint
application/vnd.ms-powerpoint
application/vnd.openxmlformats-officedocument.presentationml.presentation
application/vnd.ms-powerpoint.presentation.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.template
application/vnd.ms-powerpoint.template.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.slide
application/vnd.openxmlformats-officedocument.presentationml.slideshow
application/vnd.ms-powerpoint.slideshow.macroEnabled.12
application/vnd.oasis.opendocument.presentation-flat-xml
application/x-iwork-keynote-sffkey
(filtering the list as appropriate). This will use your-program
to open OpenDocument presentations, OpenOffice/LibreOffice presentations, PowerPoint presentations, and Keynote presentations.
You might need to add other MIME types; to determine which ones to use, run xdg-mime query filetype your-file
, replacing your-file
with the name of a file you want to configure. This will give you the MIME type to add to the list above.
If itâÂÂs correctly written, your chosen applicationâÂÂs .desktop
file should have a MIME type entry listing the types it supports â you can use that instead of the above list.
Alternatively, since youâÂÂre using GNOME, you can right-click on your file in the file manager, select âÂÂPropertiesâÂÂ, then the âÂÂOpen Withâ tab, and choose the default application there. YouâÂÂll need to repeat that for all the different file types you want to open with WPS Presentation.
1
You donâÂÂt need to specify a path, the file needs to be installed properly (typically in/usr/share/applications
or~/.local/share/applications
) âÂÂxdg-mime
will find it if it is. The command given in my answer is a one-liner, split across multiple lines for legibility (see the backslash at the end of each line but the last).
â Stephen Kitt
Sep 26 '17 at 11:29
@Léo you shouldnâÂÂt need to restart. What doesxdg-mime query filetype yourfile
say? What doesxdg-mime query default $(xdg-mime query filetype yourfile)
say?
â Stephen Kitt
Sep 26 '17 at 16:10
Alternatively, see my update to configure this using the GNOME GUI.
â Stephen Kitt
Sep 26 '17 at 16:12
I expected you to replaceyourfile
with the name of the file youâÂÂre opening.
â Stephen Kitt
Sep 26 '17 at 16:19
1
See my update; youâÂÂd need to addapplication/wps-office.ppt
to the list of MIME types given toxdg-mime default
.
â Stephen Kitt
Sep 26 '17 at 16:32
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
There is no such thing as a âÂÂdefault PowerPointâÂÂ; you need to define the default handler for the various MIME types associated with presentations. To do so, determine which .desktop
file represents the program you wish to use, then (as your own user, not root
) run
xdg-mime default your-program.desktop
application/vnd.oasis.opendocument.presentation
application/vnd.oasis.opendocument.presentation-template
application/vnd.sun.xml.impress
application/vnd.sun.xml.impress.template
application/mspowerpoint
application/vnd.ms-powerpoint
application/vnd.openxmlformats-officedocument.presentationml.presentation
application/vnd.ms-powerpoint.presentation.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.template
application/vnd.ms-powerpoint.template.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.slide
application/vnd.openxmlformats-officedocument.presentationml.slideshow
application/vnd.ms-powerpoint.slideshow.macroEnabled.12
application/vnd.oasis.opendocument.presentation-flat-xml
application/x-iwork-keynote-sffkey
(filtering the list as appropriate). This will use your-program
to open OpenDocument presentations, OpenOffice/LibreOffice presentations, PowerPoint presentations, and Keynote presentations.
You might need to add other MIME types; to determine which ones to use, run xdg-mime query filetype your-file
, replacing your-file
with the name of a file you want to configure. This will give you the MIME type to add to the list above.
If itâÂÂs correctly written, your chosen applicationâÂÂs .desktop
file should have a MIME type entry listing the types it supports â you can use that instead of the above list.
Alternatively, since youâÂÂre using GNOME, you can right-click on your file in the file manager, select âÂÂPropertiesâÂÂ, then the âÂÂOpen Withâ tab, and choose the default application there. YouâÂÂll need to repeat that for all the different file types you want to open with WPS Presentation.
1
You donâÂÂt need to specify a path, the file needs to be installed properly (typically in/usr/share/applications
or~/.local/share/applications
) âÂÂxdg-mime
will find it if it is. The command given in my answer is a one-liner, split across multiple lines for legibility (see the backslash at the end of each line but the last).
â Stephen Kitt
Sep 26 '17 at 11:29
@Léo you shouldnâÂÂt need to restart. What doesxdg-mime query filetype yourfile
say? What doesxdg-mime query default $(xdg-mime query filetype yourfile)
say?
â Stephen Kitt
Sep 26 '17 at 16:10
Alternatively, see my update to configure this using the GNOME GUI.
â Stephen Kitt
Sep 26 '17 at 16:12
I expected you to replaceyourfile
with the name of the file youâÂÂre opening.
â Stephen Kitt
Sep 26 '17 at 16:19
1
See my update; youâÂÂd need to addapplication/wps-office.ppt
to the list of MIME types given toxdg-mime default
.
â Stephen Kitt
Sep 26 '17 at 16:32
 |Â
show 2 more comments
up vote
2
down vote
accepted
There is no such thing as a âÂÂdefault PowerPointâÂÂ; you need to define the default handler for the various MIME types associated with presentations. To do so, determine which .desktop
file represents the program you wish to use, then (as your own user, not root
) run
xdg-mime default your-program.desktop
application/vnd.oasis.opendocument.presentation
application/vnd.oasis.opendocument.presentation-template
application/vnd.sun.xml.impress
application/vnd.sun.xml.impress.template
application/mspowerpoint
application/vnd.ms-powerpoint
application/vnd.openxmlformats-officedocument.presentationml.presentation
application/vnd.ms-powerpoint.presentation.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.template
application/vnd.ms-powerpoint.template.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.slide
application/vnd.openxmlformats-officedocument.presentationml.slideshow
application/vnd.ms-powerpoint.slideshow.macroEnabled.12
application/vnd.oasis.opendocument.presentation-flat-xml
application/x-iwork-keynote-sffkey
(filtering the list as appropriate). This will use your-program
to open OpenDocument presentations, OpenOffice/LibreOffice presentations, PowerPoint presentations, and Keynote presentations.
You might need to add other MIME types; to determine which ones to use, run xdg-mime query filetype your-file
, replacing your-file
with the name of a file you want to configure. This will give you the MIME type to add to the list above.
If itâÂÂs correctly written, your chosen applicationâÂÂs .desktop
file should have a MIME type entry listing the types it supports â you can use that instead of the above list.
Alternatively, since youâÂÂre using GNOME, you can right-click on your file in the file manager, select âÂÂPropertiesâÂÂ, then the âÂÂOpen Withâ tab, and choose the default application there. YouâÂÂll need to repeat that for all the different file types you want to open with WPS Presentation.
1
You donâÂÂt need to specify a path, the file needs to be installed properly (typically in/usr/share/applications
or~/.local/share/applications
) âÂÂxdg-mime
will find it if it is. The command given in my answer is a one-liner, split across multiple lines for legibility (see the backslash at the end of each line but the last).
â Stephen Kitt
Sep 26 '17 at 11:29
@Léo you shouldnâÂÂt need to restart. What doesxdg-mime query filetype yourfile
say? What doesxdg-mime query default $(xdg-mime query filetype yourfile)
say?
â Stephen Kitt
Sep 26 '17 at 16:10
Alternatively, see my update to configure this using the GNOME GUI.
â Stephen Kitt
Sep 26 '17 at 16:12
I expected you to replaceyourfile
with the name of the file youâÂÂre opening.
â Stephen Kitt
Sep 26 '17 at 16:19
1
See my update; youâÂÂd need to addapplication/wps-office.ppt
to the list of MIME types given toxdg-mime default
.
â Stephen Kitt
Sep 26 '17 at 16:32
 |Â
show 2 more comments
up vote
2
down vote
accepted
up vote
2
down vote
accepted
There is no such thing as a âÂÂdefault PowerPointâÂÂ; you need to define the default handler for the various MIME types associated with presentations. To do so, determine which .desktop
file represents the program you wish to use, then (as your own user, not root
) run
xdg-mime default your-program.desktop
application/vnd.oasis.opendocument.presentation
application/vnd.oasis.opendocument.presentation-template
application/vnd.sun.xml.impress
application/vnd.sun.xml.impress.template
application/mspowerpoint
application/vnd.ms-powerpoint
application/vnd.openxmlformats-officedocument.presentationml.presentation
application/vnd.ms-powerpoint.presentation.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.template
application/vnd.ms-powerpoint.template.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.slide
application/vnd.openxmlformats-officedocument.presentationml.slideshow
application/vnd.ms-powerpoint.slideshow.macroEnabled.12
application/vnd.oasis.opendocument.presentation-flat-xml
application/x-iwork-keynote-sffkey
(filtering the list as appropriate). This will use your-program
to open OpenDocument presentations, OpenOffice/LibreOffice presentations, PowerPoint presentations, and Keynote presentations.
You might need to add other MIME types; to determine which ones to use, run xdg-mime query filetype your-file
, replacing your-file
with the name of a file you want to configure. This will give you the MIME type to add to the list above.
If itâÂÂs correctly written, your chosen applicationâÂÂs .desktop
file should have a MIME type entry listing the types it supports â you can use that instead of the above list.
Alternatively, since youâÂÂre using GNOME, you can right-click on your file in the file manager, select âÂÂPropertiesâÂÂ, then the âÂÂOpen Withâ tab, and choose the default application there. YouâÂÂll need to repeat that for all the different file types you want to open with WPS Presentation.
There is no such thing as a âÂÂdefault PowerPointâÂÂ; you need to define the default handler for the various MIME types associated with presentations. To do so, determine which .desktop
file represents the program you wish to use, then (as your own user, not root
) run
xdg-mime default your-program.desktop
application/vnd.oasis.opendocument.presentation
application/vnd.oasis.opendocument.presentation-template
application/vnd.sun.xml.impress
application/vnd.sun.xml.impress.template
application/mspowerpoint
application/vnd.ms-powerpoint
application/vnd.openxmlformats-officedocument.presentationml.presentation
application/vnd.ms-powerpoint.presentation.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.template
application/vnd.ms-powerpoint.template.macroenabled.12
application/vnd.openxmlformats-officedocument.presentationml.slide
application/vnd.openxmlformats-officedocument.presentationml.slideshow
application/vnd.ms-powerpoint.slideshow.macroEnabled.12
application/vnd.oasis.opendocument.presentation-flat-xml
application/x-iwork-keynote-sffkey
(filtering the list as appropriate). This will use your-program
to open OpenDocument presentations, OpenOffice/LibreOffice presentations, PowerPoint presentations, and Keynote presentations.
You might need to add other MIME types; to determine which ones to use, run xdg-mime query filetype your-file
, replacing your-file
with the name of a file you want to configure. This will give you the MIME type to add to the list above.
If itâÂÂs correctly written, your chosen applicationâÂÂs .desktop
file should have a MIME type entry listing the types it supports â you can use that instead of the above list.
Alternatively, since youâÂÂre using GNOME, you can right-click on your file in the file manager, select âÂÂPropertiesâÂÂ, then the âÂÂOpen Withâ tab, and choose the default application there. YouâÂÂll need to repeat that for all the different file types you want to open with WPS Presentation.
edited Sep 26 '17 at 16:31
answered Sep 26 '17 at 11:24
Stephen Kitt
145k22317382
145k22317382
1
You donâÂÂt need to specify a path, the file needs to be installed properly (typically in/usr/share/applications
or~/.local/share/applications
) âÂÂxdg-mime
will find it if it is. The command given in my answer is a one-liner, split across multiple lines for legibility (see the backslash at the end of each line but the last).
â Stephen Kitt
Sep 26 '17 at 11:29
@Léo you shouldnâÂÂt need to restart. What doesxdg-mime query filetype yourfile
say? What doesxdg-mime query default $(xdg-mime query filetype yourfile)
say?
â Stephen Kitt
Sep 26 '17 at 16:10
Alternatively, see my update to configure this using the GNOME GUI.
â Stephen Kitt
Sep 26 '17 at 16:12
I expected you to replaceyourfile
with the name of the file youâÂÂre opening.
â Stephen Kitt
Sep 26 '17 at 16:19
1
See my update; youâÂÂd need to addapplication/wps-office.ppt
to the list of MIME types given toxdg-mime default
.
â Stephen Kitt
Sep 26 '17 at 16:32
 |Â
show 2 more comments
1
You donâÂÂt need to specify a path, the file needs to be installed properly (typically in/usr/share/applications
or~/.local/share/applications
) âÂÂxdg-mime
will find it if it is. The command given in my answer is a one-liner, split across multiple lines for legibility (see the backslash at the end of each line but the last).
â Stephen Kitt
Sep 26 '17 at 11:29
@Léo you shouldnâÂÂt need to restart. What doesxdg-mime query filetype yourfile
say? What doesxdg-mime query default $(xdg-mime query filetype yourfile)
say?
â Stephen Kitt
Sep 26 '17 at 16:10
Alternatively, see my update to configure this using the GNOME GUI.
â Stephen Kitt
Sep 26 '17 at 16:12
I expected you to replaceyourfile
with the name of the file youâÂÂre opening.
â Stephen Kitt
Sep 26 '17 at 16:19
1
See my update; youâÂÂd need to addapplication/wps-office.ppt
to the list of MIME types given toxdg-mime default
.
â Stephen Kitt
Sep 26 '17 at 16:32
1
1
You donâÂÂt need to specify a path, the file needs to be installed properly (typically in
/usr/share/applications
or ~/.local/share/applications
) â xdg-mime
will find it if it is. The command given in my answer is a one-liner, split across multiple lines for legibility (see the backslash at the end of each line but the last).â Stephen Kitt
Sep 26 '17 at 11:29
You donâÂÂt need to specify a path, the file needs to be installed properly (typically in
/usr/share/applications
or ~/.local/share/applications
) â xdg-mime
will find it if it is. The command given in my answer is a one-liner, split across multiple lines for legibility (see the backslash at the end of each line but the last).â Stephen Kitt
Sep 26 '17 at 11:29
@Léo you shouldnâÂÂt need to restart. What does
xdg-mime query filetype yourfile
say? What does xdg-mime query default $(xdg-mime query filetype yourfile)
say?â Stephen Kitt
Sep 26 '17 at 16:10
@Léo you shouldnâÂÂt need to restart. What does
xdg-mime query filetype yourfile
say? What does xdg-mime query default $(xdg-mime query filetype yourfile)
say?â Stephen Kitt
Sep 26 '17 at 16:10
Alternatively, see my update to configure this using the GNOME GUI.
â Stephen Kitt
Sep 26 '17 at 16:12
Alternatively, see my update to configure this using the GNOME GUI.
â Stephen Kitt
Sep 26 '17 at 16:12
I expected you to replace
yourfile
with the name of the file youâÂÂre opening.â Stephen Kitt
Sep 26 '17 at 16:19
I expected you to replace
yourfile
with the name of the file youâÂÂre opening.â Stephen Kitt
Sep 26 '17 at 16:19
1
1
See my update; youâÂÂd need to add
application/wps-office.ppt
to the list of MIME types given to xdg-mime default
.â Stephen Kitt
Sep 26 '17 at 16:32
See my update; youâÂÂd need to add
application/wps-office.ppt
to the list of MIME types given to xdg-mime default
.â Stephen Kitt
Sep 26 '17 at 16:32
 |Â
show 2 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394511%2fhow-to-set-wps-presentation-the-default-powerpoint-program-in-debian-x11%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password